Skip to content

Commit c81d5bc

Browse files
author
Trond Myklebust
committed
NFSv4: clp->cl_cons_state < 0 signifies an invalid nfs_client
If someone calls nfs_mark_client_ready(clp, status) with a negative value for status, then that should signal that the nfs_client is no longer valid. Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 3eba080 commit c81d5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ int nfs4_schedule_stateid_recovery(const struct nfs_server *server, struct nfs4_
14031403
dprintk("%s: scheduling stateid recovery for server %s\n", __func__,
14041404
clp->cl_hostname);
14051405
nfs4_schedule_state_manager(clp);
1406-
return 0;
1406+
return clp->cl_cons_state < 0 ? clp->cl_cons_state : 0;
14071407
}
14081408
EXPORT_SYMBOL_GPL(nfs4_schedule_stateid_recovery);
14091409

0 commit comments

Comments
 (0)