summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/init.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2022-03-16 10:44:30 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2022-03-30 05:45:01 +0200
commiteaba83b5b8506bbc9ee7ca2f10aeab3fff3719e7 (patch)
treee16294017a68809b5089ded73c1a5807cf262cf1 /drivers/scsi/isci/init.c
parentscsi: aha152x: Stop using struct scsi_pointer (diff)
downloadlinux-eaba83b5b8506bbc9ee7ca2f10aeab3fff3719e7.tar.xz
linux-eaba83b5b8506bbc9ee7ca2f10aeab3fff3719e7.zip
scsi: core: Fix sbitmap depth in scsi_realloc_sdev_budget_map()
In commit edb854a3680b ("scsi: core: Reallocate device's budget map on queue depth change"), the sbitmap for the device budget map may be reallocated after the slave device depth is configured. When the sbitmap is reallocated we use the result from scsi_device_max_queue_depth() for the sbitmap size, but don't resize to match the actual device queue depth. Fix by resizing the sbitmap after reallocating the budget sbitmap. We do this instead of init'ing the sbitmap to the device queue depth as the user may want to change the queue depth later via sysfs or other. Link: https://lore.kernel.org/r/1647423870-143867-1-git-send-email-john.garry@huawei.com Fixes: edb854a3680b ("scsi: core: Reallocate device's budget map on queue depth change") Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/isci/init.c')
0 files changed, 0 insertions, 0 deletions