From 193424e0aba3f1ddbf875aac6dc47cf029d61f05 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 15 Mar 2011 01:53:43 +0000 Subject: nfs-rpc: Append replies to end of connection's txlist ..instead of prepending. Signed-off-by: Shehjar Tikoo Signed-off-by: Anand Avati BUG: 2491 ([glusterfs-3.1.3qa4]: iozone fails due to data corruption) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2491 --- xlators/nfs/lib/src/rpcsvc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/nfs/lib/src') diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index 3f6e3b9f0..0831cf49a 100644 --- a/xlators/nfs/lib/src/rpcsvc.c +++ b/xlators/nfs/lib/src/rpcsvc.c @@ -1815,8 +1815,8 @@ nfs_rpcsvc_submit_vectors (rpcsvc_request_t *req) pthread_mutex_lock (&req->conn->connlock); { - list_splice_init (&req->txlist, &req->conn->txbufs); - list_add (&rpctxb->txlist, &req->conn->txbufs); + list_add_tail (&rpctxb->txlist, &req->conn->txbufs); + list_append_init (&req->txlist, &req->conn->txbufs); } pthread_mutex_unlock (&req->conn->connlock); -- cgit