diff options
author | Anastasia Kovaleva <[email protected]> | 2022-11-14 13:25:00 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-11-24 02:16:19 +0000 |
commit | 689d94ec208cfdf95101d99319cb4bdc5f55774d (patch) | |
tree | cf7189709ee5338a1c81710fbc60e1e04babdcae /scripts/gdb/linux/proc.py | |
parent | 9375031ee40b66c8fd2fc24d5fbea47b69f53de6 (diff) |
scsi: target: core: Change the way target_xcopy_do_work() sets restiction on max I/O
To determine how many blocks sends in one command, the minimum value is
selected from the hw_max_sectors of both devices. In target_xcopy_do_work,
hw_max_sectors are used as blocks, not sectors; it also ignores the fact
that sectors can be of different sizes, for example 512 and 4096
bytes. Because of this, a number of blocks can be transmitted that the
device will not be able to accept.
Change the selection of max transmission size into bytes.
Reviewed-by: Konstantin Shelekhin <[email protected]>
Reviewed-by: Dmitriy Bogdanov <[email protected]>
Signed-off-by: Anastasia Kovaleva <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions