From: Jens Axboe Date: Thu, 17 Sep 2009 12:51:44 +0000 (+0200) Subject: nfs: nfs_kill_super() should call bdi_unregister() after killing super X-Git-Tag: v2.6.32-rc1~617^2~3 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=92f25053c0189f8d2887f837d3936cdca1cdf730 nfs: nfs_kill_super() should call bdi_unregister() after killing super Otherwise we could be attempting to flush data for a writeback thread and bdi that have already disappeared. Signed-off-by: Jens Axboe --- diff --git a/fs/nfs/super.c b/fs/nfs/super.c index de93569..f1cc058 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -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); }