Commit 0fbeb02
nvme: set BLK_FEAT_WRITE_ZEROES_UNMAP 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, so set the
BLK_FEAT_WRITE_ZEROES_UNMAP feature to the device's queue limit.
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>1 parent c70dcfe commit 0fbeb02
1 file changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2420 | 2420 | | |
2421 | 2421 | | |
2422 | 2422 | | |
2423 | | - | |
2424 | | - | |
2425 | | - | |
2426 | | - | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
2431 | 2423 | | |
2432 | 2424 | | |
2433 | 2425 | | |
2434 | 2426 | | |
2435 | 2427 | | |
2436 | 2428 | | |
2437 | | - | |
| 2429 | + | |
2438 | 2430 | | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
2439 | 2442 | | |
2440 | 2443 | | |
2441 | 2444 | | |
| |||
0 commit comments