Skip to content
Commit a0747a85 authored by weiping zhang's avatar weiping zhang Committed by Jens Axboe
Browse files

bdi: add error handle for bdi_debug_register



In order to make error handle more cleaner we call bdi_debug_register
before set state to WB_registered, that we can avoid call bdi_unregister
in release_bdi().

Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 97f07697
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment