On Thu, 27 Jan 2022 23:37:33 +0800, Ming Lei wrote: > Martin reported that sdev->queue_depth can often be changed in > ->slave_configure(), and now we uses ->cmd_per_lun as initial queue > depth for setting up sdev->budget_map. And some extreme ->cmd_per_lun > or ->can_queue won't be used at default actually, if they are used to > allocate sdev->budget_map, huge memory may be consumed just because > of bad ->cmd_per_lun. > > [...] Applied to 5.17/scsi-fixes, thanks! [1/1] scsi: core: reallocate scsi device's budget map if default queue depth is changed https://git.kernel.org/mkp/scsi/c/edb854a3680b -- Martin K. Petersen Oracle Linux Engineering