diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2025-06-19 14:18:01 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-06-23 13:45:13 +0300 |
| commit | 6dffe079fe363ca976d26fe7e8f0b3e84b4c796f (patch) | |
| tree | f2d9eccf50a0391336b6220f38ffeb0c925e91ac /rust/helpers | |
| parent | 50634366de8629fdb96c5dd7ea595f9b61835dfc (diff) | |
| download | linux-6dffe079fe363ca976d26fe7e8f0b3e84b4c796f.tar.xz | |
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 <yi.zhang@huawei.com>
Link: https://lore.kernel.org/20250619111806.3546162-5-yi.zhang@huaweicloud.com
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
