diff options
author | Anand Avati <avati@gluster.com> | 2009-10-16 09:12:57 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-16 08:04:31 -0700 |
commit | 7bf78408ffec1efbceed17ed2e540d7d0af19763 (patch) | |
tree | 98a1c9b8ae048867242932ac00054fd4728c45d2 /xlators/features/locks/src/posix.c | |
parent | 5d423ab4548c941921c1e64135fec6e15c7787f2 (diff) |
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 <avati@dev.gluster.com>
BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators/features/locks/src/posix.c')
-rw-r--r-- | xlators/features/locks/src/posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index f2e73b9cb..50958a2ed 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -686,6 +686,7 @@ pl_lk (call_frame_t *frame, xlator_t *this, } unwind: + pl_update_refkeeper (this, fd->inode); STACK_UNWIND_STRICT (lk, frame, op_ret, op_errno, flock); out: return 0; |