From e472e5d279e57cbddd75f81775505810664f29b3 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Mon, 8 Jun 2015 18:21:56 +0530 Subject: protocol/client: Properly handle return value in clnt_release_reopen_fd On account of a lock reacquire failure [in clnt_release_reopen_fd()] the return value, on submitting the client request for release of reopened fd, is not honoured correctly. Change-Id: Iff11523b2cc6f284e806855f32a13d8c4432f1c6 BUG: 1227667 Signed-off-by: Anoop C S Reviewed-on: http://review.gluster.org/11088 Tested-by: NetBSD Build System Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- xlators/protocol/client/src/client-handshake.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xlators/protocol/client/src/client-handshake.c') diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index 0df5980f0c8..9289859d1e7 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -365,7 +365,6 @@ clnt_release_reopen_fd (xlator_t *this, clnt_fd_ctx_t *fdctx) clnt_release_reopen_fd_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_releasedir_req); - return 0; out: if (ret) { clnt_fd_lk_reacquire_failed (this, fdctx, conf); -- cgit