nvmet: don't look at the request_queue in nvmet_bdev_set_limits
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 08:26:26 +0000 (10:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 16:51:50 +0000 (18:51 +0200)
commit84fe64f898913ef69f70a8d91aea613b5722b63b
treedd22f5d9d85619fa9ab72bd67aed7557e267c0c2
parent8df20252c06046ef4c68107bcaaca56c21028d8c
nvmet: don't look at the request_queue in nvmet_bdev_set_limits

nvmet is a consumer of the block layer and should not directly look at
the request_queue.  Use the bdev_ helpers to retrieve the device limits
instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/io-cmd-bdev.c