From: Trond Myklebust Date: Mon, 20 Mar 2006 18:44:09 +0000 (-0500) Subject: NFSv4: Do not call rpciod_down() before call to destroy_nfsv4_state() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=967b9281361481aecf323563886ef972ee88c681;p=deliverable%2Flinux.git NFSv4: Do not call rpciod_down() before call to destroy_nfsv4_state() The reason is that the idmapper cleanup may call flush_workqueue() on rpciod_workqueue. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 24988f430e4b..b81149eb26e5 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -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); }