kernel: eMMC: support BLKZEROOUT |
||
Issue descriptionIt looks like mmc stack does not support BLKZEROOUT, write_same_max_bytes is set to 0. However, since eMMC 5.1, some device can indicate that after discard operation, the data read from the discarded block will be constant (0 or 1) or not. For those devices which returns a constant 0, we can indicate to the block layer to send a BLKZEROOUT and map it to a discard. [The patch will be sent upstream first]
,
Aug 3
This bug has an owner, thus, it's been triaged. Changing status to "assigned".
,
Aug 7
By " BLKZEROOUT", I meant "offload BLKZEROOUT". When the device does not return zero when a discard is sent, then the kernel will write 0's to the device. A device does not have to write 0's to the discarded block. Just returns 0s when the host asks for LBA of blocks that have been discarded. Most modern ATA SSD devices that support trim do that: Samsung SSD 860, Crucial_CT960M50 on my workstation do. |
||
►
Sign in to add a comment |
||
Comment 1 by de...@google.com
, Apr 23 2018