hw/block/nvme: remove block accounting for write zeroes
A Write Zeroes commands should not be counted in either the 'Data Units Written' or in 'Host Write Commands' SMART/Health Information Log page. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
ba7b81e769
commit
d90ba23a84
@ -2181,7 +2181,6 @@ static uint16_t nvme_do_write(NvmeCtrl *n, NvmeRequest *req, bool append,
|
||||
nvme_rw_cb, req);
|
||||
}
|
||||
} else {
|
||||
block_acct_start(blk_get_stats(blk), &req->acct, 0, BLOCK_ACCT_WRITE);
|
||||
req->aiocb = blk_aio_pwrite_zeroes(blk, data_offset, data_size,
|
||||
BDRV_REQ_MAY_UNMAP, nvme_rw_cb,
|
||||
req);
|
||||
|
Loading…
Reference in New Issue
Block a user