Skip to content

Commit

Permalink
NFSv4: Do not call rpciod_down() before call to destroy_nfsv4_state()
Browse files Browse the repository at this point in the history
The reason is that the idmapper cleanup may call flush_workqueue() on
rpciod_workqueue.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 20, 2006
1 parent 12de3b3 commit 967b928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2025,10 +2025,11 @@ static void nfs4_kill_super(struct super_block *sb)

if (server->client != NULL && !IS_ERR(server->client))
rpc_shutdown_client(server->client);
rpciod_down(); /* release rpciod */

destroy_nfsv4_state(server);

rpciod_down();

kfree(server->hostname);
kfree(server);
}
Expand Down

0 comments on commit 967b928

Please sign in to comment.