diff options
author | Tetsuo Handa <[email protected]> | 2022-01-06 18:53:16 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-01-17 07:19:40 -0700 |
commit | 00358933f66c44d511368a57eb421e172447cfb9 (patch) | |
tree | d2eb3e96ccf410dd73ddb8c23329960367d683e6 /net/lapb/lapb_timer.c | |
parent | a6431e351c6ec5bb6800787d259b343088f369a3 (diff) |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions