summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-06-20 01:47:28 +0000
committerAnand Avati <avati@gluster.com>2011-07-12 07:43:17 -0700
commitfef771e10b82f84067538d7407da1fa081d189be (patch)
tree8e79c93073260f0f77668490263d454a6683b20d
parentee744e0908dca3c954f6b6a922dd48f6f6e8cbc6 (diff)
performance/quick-read: reset open_in_transit to zero in case of an error.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3011 (Uninterruptible processes writing(reading ? ) to/from glusterfs share) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3011
-rw-r--r--xlators/performance/quick-read/src/quick-read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 5cdceb4..8eaa061 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -137,6 +137,7 @@ qr_resume_pending_ops (qr_fd_ctx_t *qr_fd_ctx)
LOCK (&qr_fd_ctx->lock);
{
+ qr_fd_ctx->open_in_transit = 0;
list_splice_init (&qr_fd_ctx->waiting_ops,
&waiting_ops);
}