aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/clk.py
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2022-01-27 23:37:33 +0800
committerMartin K. Petersen <[email protected]>2022-01-31 12:56:01 -0500
commitedb854a3680bacc9ef9b91ec0c5ff6105886f6f3 (patch)
tree55c214c1b42bbe7105e4a15bbe6bd6ac76844edd /scripts/gdb/linux/clk.py
parent936bd03405fc83ba039d42bc93ffd4b88418f1d3 (diff)
scsi: core: Reallocate device's budget map on queue depth change
We currently use ->cmd_per_lun as initial queue depth for setting up the budget_map. Martin Wilck reported that it is common for the queue_depth to be subsequently updated in slave_configure() based on detected hardware characteristics. As a result, for some drivers, the static host template settings for cmd_per_lun and can_queue won't actually get used in practice. And if the default values are used to allocate the budget_map, memory may be consumed unnecessarily. Fix the issue by reallocating the budget_map after ->slave_configure() returns. At that time the device queue_depth should accurately reflect what the hardware needs. Link: https://lore.kernel.org/r/[email protected] Cc: Bart Van Assche <[email protected]> Reported-by: Martin Wilck <[email protected]> Suggested-by: Martin Wilck <[email protected]> Tested-by: Martin Wilck <[email protected]> Reviewed-by: Martin Wilck <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions