Skip to content

Commit b174693

Browse files
bcodding-rhroxanan1996
authored andcommitted
NFS: Cleanup unused rpc_clnt variable
BugLink: https://bugs.launchpad.net/bugs/2045809 [ Upstream commit e025f0a ] The root rpc_clnt is not used here, clean it up. Fixes: 4dc73c6 ("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> Stable-dep-of: 956fd46 ("NFSv4: Fix a state manager thread deadlock regression") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent d0f5f0e commit b174693

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/nfs/nfs4state.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,10 +1213,6 @@ void nfs4_schedule_state_manager(struct nfs_client *clp)
12131213
{
12141214
struct task_struct *task;
12151215
char buf[INET6_ADDRSTRLEN + sizeof("-manager") + 1];
1216-
struct rpc_clnt *cl = clp->cl_rpcclient;
1217-
1218-
while (cl != cl->cl_parent)
1219-
cl = cl->cl_parent;
12201216

12211217
set_bit(NFS4CLNT_RUN_MANAGER, &clp->cl_state);
12221218
if (test_and_set_bit(NFS4CLNT_MANAGER_AVAILABLE, &clp->cl_state) != 0) {

0 commit comments

Comments
 (0)