From f75277b12af4c7e72c448480feec0d0e2e6582cd Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 7 Mar 2012 17:48:12 +0530 Subject: features/locks: Make inodelk ref-counted Ref when the object is allocated. Unref after the response is submitted to that inodelk. Ref when the lock is granted. Unref when the lock is unlocked. Change-Id: I2bfe9182b67bea7dc7b9d0ed9f99f1c7fa0b8a3c BUG: 783449 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/2891 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/locks/src/locks.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/locks/src/locks.h') diff --git a/xlators/features/locks/src/locks.h b/xlators/features/locks/src/locks.h index 653cc4d6b8b..6df1235a2be 100644 --- a/xlators/features/locks/src/locks.h +++ b/xlators/features/locks/src/locks.h @@ -65,6 +65,7 @@ typedef struct __posix_lock posix_lock_t; struct __pl_inode_lock { struct list_head list; struct list_head blocked_locks; /* list_head pointing to blocked_inodelks */ + int ref; short fl_type; off_t fl_start; -- cgit