block: split block_class_lock
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:26 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commite49fbbbf0aa14f011ab037086f37f58bd058a6ee
tree836a84f67dda10ff2977c0ee6544d22536b76bb3
parent62b508f8b6b1b52843cd90f0b2068ed963f25bd3
block: split block_class_lock

Split the block_class_lock mutex into one each to protect bdev_map
and major_names.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c