Skip to content
Commit 5dfc589a authored by Sage Weil's avatar Sage Weil
Browse files

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: default avatarSage Weil <sage@newdream.net>
parent b0930f8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment