diff options
author | Mike Christie <[email protected]> | 2021-02-06 22:46:05 -0600 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-02-08 22:39:04 -0500 |
commit | 25c400db2083732a5fbdd72f0d3a0337119b2fa5 (patch) | |
tree | 8b25f6b392368a7621381534d7d757b5a847b3bf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b4046922b3c0740ad50a6e9c59e12f4dc43946d4 (diff) |
scsi: iscsi_tcp: Fix shost can_queue initialization
We are setting the shost's can_queue after we add the host which is too
late, because the SCSI midlayer will have allocated the tag set based on
the can_queue value at that time. This patch has us use the
iscsi_host_get_max_scsi_cmds() helper to figure out the number of SCSI
cmds.
It also fixes up the template can_queue so it reflects the max SCSI cmds we
can support like how other drivers work.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Lee Duncan <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions