On Mon, 14 Nov 2022 13:24:57 +0300, Anastasia Kovaleva wrote: > Currently iblock always reports MAXIMUM TRANSFER LENGTH in 512b units > regardless of the LU block size. > > Target block size: > target:~ # fdisk -l /dev/nullb0 > Disk /dev/nullb0: 250 GiB, 268435456000 bytes, 65536000 sectors > Units: sectors of 1 * 4096 = 4096 bytes > Sector size (logical/physical): 4096 bytes / 4096 bytes > I/O size (minimum/optimal): 4096 bytes / 4096 bytes > > [...] Applied to 6.2/scsi-queue, thanks! [1/3] target: core: Send mtl in blocks https://git.kernel.org/mkp/scsi/c/7870d2481789 [2/3] target: core: make hw_max_sectors store the sectors amount in blocks https://git.kernel.org/mkp/scsi/c/9375031ee40b [3/3] target: core: Change the way target_xcopy_do_work sets restiction on max io https://git.kernel.org/mkp/scsi/c/689d94ec208c -- Martin K. Petersen Oracle Linux Engineering