aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2022-01-06 18:53:16 +0900
committerJens Axboe <[email protected]>2022-01-17 07:19:40 -0700
commit00358933f66c44d511368a57eb421e172447cfb9 (patch)
treed2eb3e96ccf410dd73ddb8c23329960367d683e6 /net/lapb/lapb_in.c
parenta6431e351c6ec5bb6800787d259b343088f369a3 (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_in.c')
0 files changed, 0 insertions, 0 deletions