diff options
author | Tetsuo Handa <[email protected]> | 2021-09-07 19:18:00 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-10-17 06:51:19 -0600 |
commit | f7bf35862477d6d4f8a9746c645a4380de984700 (patch) | |
tree | e95a4fb202a0a1eec7c7bdfa96af425569b14ddc /scripts/gdb/linux/dmesg.py | |
parent | c41108049d143304faf06852c7181262b7b0d242 (diff) |
brd: reduce the brd_devices_mutex scope
As with commit 8b52d8be86d72308 ("loop: reorder loop_exit"),
unregister_blkdev() needs to be called first in order to avoid calling
brd_alloc() from brd_probe() after brd_del_one() from brd_exit(). Then,
we can avoid holding global mutex during add_disk()/del_gendisk() as with
commit 1c500ad706383f1a ("loop: reduce the loop_ctl_mutex scope").
Signed-off-by: Tetsuo Handa <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions