nvmet: set the LBCC bit for commands that modify data
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Dec 2022 14:20:56 +0000 (15:20 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Dec 2022 16:26:13 +0000 (06:26 -1000)
commitf2d1421391bba0b15684d2379a47a089f0e561d0
tree6e9d3a55e31316f236a9819dfb9dcc8f99cc9509
parent61f37154c599cf9f2f84dcbd9be842f8645a7099
nvmet: set the LBCC bit for commands that modify data

Write, Write Zeroes, Zone append and a Zone Reset through
Zone Management Send modify the logical block content of a namespace,
so make sure the LBCC bit is reported for them.

Fixes: b5d0b38c0475 ("nvmet: add Command Set Identifier support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/target/admin-cmd.c