NFS: Cleanup unused rpc_clnt variable
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 20 Apr 2023 16:17:35 +0000 (12:17 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 21 Apr 2023 21:00:55 +0000 (17:00 -0400)
The root rpc_clnt is not used here, clean it up.

Fixes: 4dc73c679114 ("NFSv4: keep state manager thread active if swap is enabled")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4state.c

index 660ccfaf463e439fecfcf21f55f2c2e73016a3b0..bbe49315d99e2418e0bee0e6e545bb6cd229216b 100644 (file)
@@ -1209,10 +1209,6 @@ void nfs4_schedule_state_manager(struct nfs_client *clp)
 {
        struct task_struct *task;
        char buf[INET6_ADDRSTRLEN + sizeof("-manager") + 1];
-       struct rpc_clnt *cl = clp->cl_rpcclient;
-
-       while (cl != cl->cl_parent)
-               cl = cl->cl_parent;
 
        set_bit(NFS4CLNT_RUN_MANAGER, &clp->cl_state);
        if (test_and_set_bit(NFS4CLNT_MANAGER_AVAILABLE, &clp->cl_state) != 0) {