From b63f69cdf40ef5bd79abdcd641b3dcc4bcb3cb1a Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 31 Jul 2009 12:38:36 +0000 Subject: libglusterfsclient: Bind fd on fd creation code paths When an fd_t is fd_create'd, we need to call fd_bind on it to ensure that any fd_lookup on the inode gets us this fd. We're not doing this so translators like write-behind were not able to order path-based requests at all resulting in some fops like stat, which could be issued after a writev, overtaking a previous writev which is still being written-behind. Signed-off-by: Anand V. Avati BUG: 179 (fileop reports miscompares on read tests) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=179 --- libglusterfsclient/src/libglusterfsclient-internals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h') diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h index bdbdd744b..32d4156a9 100755 --- a/libglusterfsclient/src/libglusterfsclient-internals.h +++ b/libglusterfsclient/src/libglusterfsclient-internals.h @@ -49,6 +49,7 @@ typedef struct libglusterfs_client_ctx { * accessed through this context. */ dev_t fake_fsid; + pid_t pid; }libglusterfs_client_ctx_t; typedef struct signal_handler { -- cgit