diff options
| author | Zhang Yi <[email protected]> | 2025-06-19 11:17:59 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-06-23 10:45:13 +0000 |
| commit | 545fb46e5bc6ffaa303181bd3878db506a0f0fa6 (patch) | |
| tree | 88f189ea572d9119b54b77115f817668a310958d /net/unix/af_unix.c | |
| parent | block: introduce max_{hw|user}_wzeroes_unmap_sectors to queue limits (diff) | |
| download | kernel-545fb46e5bc6ffaa303181bd3878db506a0f0fa6.tar.gz kernel-545fb46e5bc6ffaa303181bd3878db506a0f0fa6.zip | |
nvme: set max_hw_wzeroes_unmap_sectors if device supports DEAC bit
When the device supports the Write Zeroes command and the DEAC bit, it
indicates that the deallocate bit in the Write Zeroes command is
supported, and the bytes read from a deallocated logical block are
zeroes. This means the device supports unmap Write Zeroes operation, so
set the max_hw_wzeroes_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: Christoph Hellwig <[email protected]>
Reviewed-by: "Martin K. Petersen" <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
