summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2009-12-06 14:29:04 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 12:39:19 -0800
commitc50bc71035d87b5df77f6331ced6229af5508a10 (patch)
tree273deb15033784026fcc5ef29d85a918e8559f12
parent76d6f3fbe993dddd72540f461090803636fa2dc5 (diff)
fuse-bridge: set lk_owner to -1 for release forged flush.
Server would interpret 0 as a sign of us getting disconnected. Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 336 (Use lock owner field from fuse in locks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=336
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index db7362ff9d1..ffef81b69f1 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2049,6 +2049,7 @@ fuse_release (xlator_t *this, fuse_in_header_t *finh, void *msg)
do_flush ? " (FLUSH implied)" : "");
if (do_flush) {
+ state->lk_owner = (uint64_t)-1;
FUSE_FOP (state, fuse_err_cbk, GF_FOP_FLUSH, flush, fd);
fd_unref (fd);
} else {