From c82a9d438bc47e9dff2047df1012cdd0653cffca Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 14 Jul 2011 01:04:31 +0000 Subject: features/locks: Avoid using reqlock to prevent race Signed-off-by: Vijay Bellur Signed-off-by: Anand Avati BUG: 2473 (Support for volume and directory level quota) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2473 --- xlators/features/locks/src/inodelk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/locks/src/inodelk.c') diff --git a/xlators/features/locks/src/inodelk.c b/xlators/features/locks/src/inodelk.c index 81cd26730..667d0d863 100644 --- a/xlators/features/locks/src/inodelk.c +++ b/xlators/features/locks/src/inodelk.c @@ -615,7 +615,7 @@ pl_common_inodelk (call_frame_t *frame, xlator_t *this, can_block, dom); if (ret < 0) { - if ((can_block) && (F_UNLCK != reqlock->fl_type)) { + if ((can_block) && (F_UNLCK != flock->l_type)) { pl_trace_block (this, frame, fd, loc, cmd, flock, volume); goto out; -- cgit