On Fri, Dec 17, 2021 at 08:03:48PM +0900, Tetsuo Handa wrote: > If brd_alloc() from brd_probe() is called before brd_alloc() from > brd_init() is called, module loading will fail with -EEXIST error. > To close this race, call __register_blkdev() just before leaving > brd_init(). > > Then, we can remove brd_devices_mutex mutex, for brd_device list > will no longer be accessed concurrently. > > Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Luis