Skip to content

Commit

Permalink
NFS: Ensure we call nfs_sb_deactive() after releasing the directory i…
Browse files Browse the repository at this point in the history
…node

In order to avoid the "Busy inodes after unmount" error message, we need to
ensure that nfs_async_unlink_release() releases the super block after the
call to nfs_free_unlinkdata().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jul 27, 2008
1 parent 31c9446 commit 744d18d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfs/unlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ static void nfs_async_unlink_done(struct rpc_task *task, void *calldata)
static void nfs_async_unlink_release(void *calldata)
{
struct nfs_unlinkdata *data = calldata;
struct super_block *sb = data->dir->i_sb;

nfs_dec_sillycount(data->dir);
nfs_sb_deactive(NFS_SERVER(data->dir));
nfs_free_unlinkdata(data);
nfs_sb_deactive(NFS_SB(sb));
}

static const struct rpc_call_ops nfs_unlink_ops = {
Expand Down

0 comments on commit 744d18d

Please sign in to comment.