From 8c24158f2bda14e9debcc2f4ccde53aa9629c2b7 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 20 Jun 2011 01:46:07 +0000 Subject: performance/quick-read: reset open_in_transit to zero in case of an error. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 3011 (Uninterruptible processes writing(reading ? ) to/from glusterfs share) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3011 --- xlators/performance/quick-read/src/quick-read.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/performance/quick-read') diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 88f7fd74b..1a458f4a6 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -138,6 +138,7 @@ qr_resume_pending_ops (qr_fd_ctx_t *qr_fd_ctx, int32_t op_ret, int32_t op_errno) LOCK (&qr_fd_ctx->lock); { + qr_fd_ctx->open_in_transit = 0; list_splice_init (&qr_fd_ctx->waiting_ops, &waiting_ops); } -- cgit