summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/nfs/server/src/nfs3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index e4181779511..e46c4e9205e 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -486,9 +486,6 @@ typedef ssize_t (*nfs3_serializer) (struct iovec outmsg, void *args);
static void
__nfs3_call_state_wipe (nfs3_call_state_t *cs)
{
- if (!cs)
- return;
-
if (cs->fd) {
gf_msg_trace (GF_NFS3, 0, "fd 0x%lx ref: %d",
(long)cs->fd, cs->fd->refcount);
@@ -547,6 +544,10 @@ err:
void
nfs3_call_state_wipe (nfs3_call_state_t *cs)
{
+ if (!cs) {
+ gf_log_callingfn ("nfs", GF_LOG_WARNING, "nfs calling state NULL");
+ return;
+ }
GF_REF_PUT (cs);
}