Re: [PATCH V4 3/9] null_blk: move unregister_blkdev() after destroying dev in null_exit()

From: Nilay Shroff

Date: Fri Jul 10 2026 - 08:43:42 EST


On 7/9/26 3:34 PM, Zizhi Wo wrote:
In null_exit(), unregister_blkdev() is called before the null_blk instances
are destroyed, which is inconsistent with the cleanup order in null_init().
Move it after null_destroy_dev() so that teardown happens in the reverse
order of initialization.

No functional change intended.

Looks good to me.

Reviewed-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>