From cc9ca7d2b2f5c91d80265c28ca724cb233c2bd77 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 22 May 2013 15:18:19 +0530 Subject: cluster/afr: Perform delayed changelog wakeups for anon fd Problem: Nfs xlator never does open on a file for performing writes, afr does not perform changelog wakeup for this fd so operations which do metadata operations as soon as the data operations are completed perceive a delay of 'post-op-delay-secs'. Fix: Perform changelog wakeup on anon-fd if the fd with same pid is not present in inode-list. Note: This approach is a short-term fix. A proper fix needs a new domain for taking metadata locks so that data/metadata locks don't compete with each other. Change-Id: I253afb289eadf30c7951e56fb2c4840d7132f5e4 BUG: 966018 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/5066 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/fd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/fd.h') diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index 54290b198..c1b9157d8 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -134,6 +134,9 @@ fd_lookup (struct _inode *inode, pid_t pid); fd_t * fd_lookup_uint64 (struct _inode *inode, uint64_t pid); +fd_t* +fd_lookup_anonymous (inode_t *inode); + fd_t * fd_anonymous (inode_t *inode); -- cgit