Skip to content

Commit

Permalink
nfs: nfs_kill_super() should call bdi_unregister() after killing super
Browse files Browse the repository at this point in the history
Otherwise we could be attempting to flush data for a writeback
thread and bdi that have already disappeared.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Sep 21, 2009
1 parent 6952b61 commit 92f2505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2190,8 +2190,8 @@ static void nfs_kill_super(struct super_block *s)
{
struct nfs_server *server = NFS_SB(s);

bdi_unregister(&server->backing_dev_info);
kill_anon_super(s);
bdi_unregister(&server->backing_dev_info);
nfs_fscache_release_super_cookie(s);
nfs_free_server(server);
}
Expand Down

0 comments on commit 92f2505

Please sign in to comment.