• Matthew R. Ochs's avatar
    scsi: cxlflash: Use derived maximum write same length · 285e6670
    Matthew R. Ochs authored
    The existing write same routine within the cxlflash driver uses a
    statically defined value for the maximum write same transfer length.
    While this is close to the value reflected by the original device that
    was supported by cxlflash, newer devices are capable of much larger
    lengths. Supporting what the device is capable of offers substantial
    performance improvement as the scrub routine within cxlflash operates on
    'chunk size' units (256MB with a 4K sector size).
    
    Instead of a #define, use the write same maximum length that is stored
    in the block layer in units of 512 byte sectors. This value is initially
    determined from the block limits VPD page during device discovery and
    can also be manipulated from sysfs. As a general cleanup, designate the
    timeout used when executing the write same command as constant.
    Signed-off-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
    Signed-off-by: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    285e6670
sislite.h 18.7 KB