scsi: target: core: Make hw_max_sectors store the sectors amount in blocks
authorAnastasia Kovaleva <a.kovaleva@yadro.com>
Mon, 14 Nov 2022 10:24:59 +0000 (13:24 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 24 Nov 2022 02:16:19 +0000 (02:16 +0000)
commit9375031ee40b66c8fd2fc24d5fbea47b69f53de6
tree839819081fd59b57daa9fcd4324aee787ae5d40b
parent7870d24817890bccee98db0718acececd6399d04
scsi: target: core: Make hw_max_sectors store the sectors amount in blocks

By default, hw_max_sectors stores its value in 512 blocks in iblock,
despite the fact that the block size can be 4096 bytes. Change
hw_max_sectors to store the number of sectors in hw_block_size blocks.

Reviewed-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Reviewed-by: Dmitriy Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Anastasia Kovaleva <a.kovaleva@yadro.com>
Link: https://lore.kernel.org/r/20221114102500.88892-3-a.kovaleva@yadro.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_iblock.c