diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-11 14:44:28 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-13 14:17:41 -0600 |
commit | 6e4df4c6488165637b95b9701cc862a42a3836ba (patch) | |
tree | 96ded1a3513ae34c7462db58bd0433785f6f7ac6 /Documentation/driver-api/slimbus.rst | |
parent | 6177b56c96ff3b5e23d47f6b6c8630f31145da93 (diff) | |
download | linux-6e4df4c6488165637b95b9701cc862a42a3836ba.tar.gz linux-6e4df4c6488165637b95b9701cc862a42a3836ba.tar.bz2 linux-6e4df4c6488165637b95b9701cc862a42a3836ba.zip |
nbd: reduce the nbd_index_mutex scope
nbd_index_mutex is currently held over add_disk and inside ->open, which
leads to lock order reversals. Refactor the device creation code path
so that nbd_dev_add is called without nbd_index_mutex lock held and
only takes it for the IDR insertation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210811124428.2368491-7-hch@lst.de
[axboe: fix whitespace]
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/driver-api/slimbus.rst')
0 files changed, 0 insertions, 0 deletions