summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/protocol/client/src/client-handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index 55a03716ddc..649b113db14 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -621,13 +621,13 @@ __is_fd_reopen_in_progress(clnt_fd_ctx_t *fdctx)
void
client_attempt_reopen(fd_t *fd, xlator_t *this)
{
+ if (!fd || !this)
+ goto out;
+
clnt_conf_t *conf = this->private;
clnt_fd_ctx_t *fdctx = NULL;
gf_boolean_t reopen = _gf_false;
- if (!fd || !this)
- goto out;
-
pthread_spin_lock(&conf->fd_lock);
{
fdctx = this_fd_get_ctx(fd, this);