aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTom Yan <[email protected]>2020-09-04 02:17:23 +0800
committerGreg Kroah-Hartman <[email protected]>2020-09-04 17:00:38 +0200
commit0154012f8018bba4d9971d1007c12ffd48539ddb (patch)
tree974d2f048b99c7f1e435abb25d99e455ffc5c9c2 /tools/perf/scripts/python
parentf0dbd25f422f6abb44b6317cbf881b921741e753 (diff)
usb-storage: fix sdev->host->dma_dev
Use scsi_add_host_with_dma() instead of scsi_add_host(). When the scsi request queue is initialized/allocated, hw_max_sectors is clamped to the dma max mapping size. Therefore, the correct device that should be used for the clamping needs to be set. The same clamping is still needed in usb-storage as hw_max_sectors could be changed there. The original clamping would be invalidated in such cases. Signed-off-by: Tom Yan <[email protected]> Reviewed-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions