From 7bf78408ffec1efbceed17ed2e540d7d0af19763 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 16 Oct 2009 09:12:57 +0000 Subject: locks: keep ref on the inode while locks are held keeping refs on the inode while there are held locks prevents the inode from getting pruned away Signed-off-by: Anand V. Avati BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- xlators/features/locks/src/entrylk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/locks/src/entrylk.c') diff --git a/xlators/features/locks/src/entrylk.c b/xlators/features/locks/src/entrylk.c index f1536f803..e22a8305d 100644 --- a/xlators/features/locks/src/entrylk.c +++ b/xlators/features/locks/src/entrylk.c @@ -534,6 +534,7 @@ pl_common_entrylk (call_frame_t *frame, xlator_t *this, op_ret = 0; out: + pl_update_refkeeper (this, inode); if (unwind) { STACK_UNWIND_STRICT (entrylk, frame, op_ret, op_errno); } -- cgit