aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-09-17 08:51:44 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-09-21 09:40:32 -0400
commit92f25053c0189f8d2887f837d3936cdca1cdf730 (patch)
tree42cb0d38ee8983fa31290c5c80322574c04f4d5a /fs/nfs/super.c
parent6952b61de9984073289859073e8195ad0bee8fd5 (diff)
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 <jens.axboe@oracle.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index de935692d40d..f1cc0587cfef 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2190,8 +2190,8 @@ static void nfs_kill_super(struct super_block *s)
2190{ 2190{
2191 struct nfs_server *server = NFS_SB(s); 2191 struct nfs_server *server = NFS_SB(s);
2192 2192
2193 bdi_unregister(&server->backing_dev_info);
2194 kill_anon_super(s); 2193 kill_anon_super(s);
2194 bdi_unregister(&server->backing_dev_info);
2195 nfs_fscache_release_super_cookie(s); 2195 nfs_fscache_release_super_cookie(s);
2196 nfs_free_server(server); 2196 nfs_free_server(server);
2197} 2197}