nbd: add missing locking to the nbd_dev_add error path
idr_remove needs external synchronization. Fixes: 6e4df4c6 ("nbd: reduce the nbd_index_mutex scope") Signed-off-by:Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> [hch: split from a larger patch] Signed-off-by:
Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210825163108.50713-2-hch@lst.deReviewed-by:
Josef Bacik <josef@toxicpanda.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
Please register or sign in to comment