summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnoop C S <achiraya@redhat.com>2015-06-08 18:21:56 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-06-25 09:53:07 -0700
commite472e5d279e57cbddd75f81775505810664f29b3 (patch)
treea215cd046e69ad9f751b31b955e10189921ee9c1
parenta51d4670ce663b957d91443d313c48b5f44254e3 (diff)
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 <achiraya@redhat.com> Reviewed-on: http://review.gluster.org/11088 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com>
-rw-r--r--xlators/protocol/client/src/client-handshake.c1
1 files changed, 0 insertions, 1 deletions
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);