aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorZhang Yi <[email protected]>2025-06-19 11:18:01 +0000
committerChristian Brauner <[email protected]>2025-06-23 10:45:13 +0000
commit6dffe079fe363ca976d26fe7e8f0b3e84b4c796f (patch)
treef2d9eccf50a0391336b6220f38ffeb0c925e91ac /rust/helpers/helpers.c
parentnvmet: set WZDS and DRB if device enables unmap write zeroes operation (diff)
downloadkernel-6dffe079fe363ca976d26fe7e8f0b3e84b4c796f.tar.gz
kernel-6dffe079fe363ca976d26fe7e8f0b3e84b4c796f.zip
scsi: sd: set max_hw_wzeroes_unmap_sectors if device supports SD_ZERO_*_UNMAP
When the device supports the Write Zeroes command and the zeroing mode is set to SD_ZERO_WS16_UNMAP or SD_ZERO_WS10_UNMAP, this means that the device supports unmap Write Zeroes, so set the corresponding max_hw_write_zeroes_unmap_sectors to max_write_zeroes_sectors on the device's queue limit. Signed-off-by: Zhang Yi <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: "Martin K. Petersen" <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions