ceph: unregister bdi before kill_anon_super releases device name
authorSage Weil <sage@newdream.net>
Tue, 4 May 2010 23:14:46 +0000 (16:14 -0700)
committerSage Weil <sage@newdream.net>
Tue, 4 May 2010 23:14:46 +0000 (16:14 -0700)
commit5dfc589a8467470226feccdc50f1b32713318e7b
tree82998c57555055cf3763e9a4fc757d5de0628c21
parentb0930f8d38c6ab76dc8222a5a910a21392d38208
ceph: unregister bdi before kill_anon_super releases device name

Unregister and destroy the bdi in put_super, after mount is r/o, but before
put_anon_super releases the device name.

For symmetry, bdi_destroy in destroy_client (we bdi_init in create_client).

Only set s_bdi if bdi_register succeeds, since we use it to decide whether
to bdi_unregister.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/super.c