From 9fd44bd90ecb60760919bda85308132341f857f9 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sun, 18 Mar 2012 13:07:30 +0530 Subject: protocol/server: Clear internal locks on disconnect If there is a disconnect observed on the client when the inode/entry unlock is issued, but the reconnection to server happens with in the grace-time period the inode/entry lk will live and the unlock will never come from that client. The internal locks should be cleared on disconnect. Change-Id: Ib45b1035cfe3b1de381ef3b331c930011e7403be BUG: 803209 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/2966 Reviewed-by: Anand Avati Tested-by: Gluster Build System --- xlators/protocol/server/src/server-handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/server/src/server-handshake.c') diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c index 1698a3f5c..d951aad9c 100644 --- a/xlators/protocol/server/src/server-handshake.c +++ b/xlators/protocol/server/src/server-handshake.c @@ -436,7 +436,8 @@ server_setvolume (rpcsvc_request_t *req) server_connection_put (this, conn, NULL); if (conn->lk_version != 0 && conn->lk_version != lk_version) { - (void) server_connection_cleanup (this, conn); + (void) server_connection_cleanup (this, conn, + INTERNAL_LOCKS | POSIX_LOCKS); } if (req->trans->xl_private != conn) -- cgit