Tetsuo Handa 00358933f6 brd: remove brd_devices_mutex mutex
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@I-love.SAKURA.ne.jp>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/6b074af7-c165-4fab-b7da-8270a4f6f6cd@i-love.sakura.ne.jp
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-01-17 07:19:40 -07:00
..
2022-01-13 11:09:11 -08:00
2021-11-29 06:35:21 -07:00
2021-11-29 06:38:35 -07:00
2022-01-17 07:19:40 -07:00
2021-12-16 10:57:04 -07:00
2021-12-16 10:57:04 -07:00
2021-11-09 11:24:08 -08:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2022-01-12 10:26:52 -08:00
2021-11-29 06:38:35 -07:00