diff options
author | Christoph Hellwig <hch@lst.de> | 2022-10-18 15:57:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-10-25 16:25:35 +0200 |
commit | dc917c361422388f0d39d3f0dc2bc5a188c01156 (patch) | |
tree | bb5aa0a5c3af3822198a638a4e15a79b92d35f6d /drivers/scsi/scsi_scan.c | |
parent | blk-mq: move the call to blk_put_queue out of blk_mq_destroy_queue (diff) | |
download | linux-dc917c361422388f0d39d3f0dc2bc5a188c01156.tar.xz linux-dc917c361422388f0d39d3f0dc2bc5a188c01156.zip |
scsi: remove an extra queue reference
Now that blk_mq_destroy_queue does not release the queue reference, there
is no need for a second queue reference to be held by the scsi_device.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20221018135720.670094-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 5d27f5196de6..0a95fa787fdf 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -344,7 +344,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, sdev->request_queue = q; q->queuedata = sdev; __scsi_init_queue(sdev->host, q); - WARN_ON_ONCE(!blk_get_queue(q)); depth = sdev->host->cmd_per_lun ?: 1; |