block: cleanup the lockdep handling in *alloc_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 13:19:05 +0000 (15:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 18:54:30 +0000 (12:54 -0600)
commit4dcc4874deb41a11ece9c6e8858385235463c1ac
treea0235f9ce6be122bcab854bb1629781529bd3c98
parentaebbb5831fbd5352fd9bd2c858bc249026d3c652
block: cleanup the lockdep handling in *alloc_disk

Pass the lockdep name to the low-level __blk_alloc_disk helper and
hardcode the name for it given that the number of minors or node_id
are not very useful information.  While this passes a pointless
argument for non-lockdep builds that is not really an issue as
disk allocation is a probe time only slow path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210816131910.615153-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/genhd.c
include/linux/blk-mq.h
include/linux/genhd.h