nvmet: fix rw control endian access
Subsystems (2)
PATCH 1/1 nvmet: fix rw control endian access
From: Keith Busch <[email protected]>
Fixes 3ec5c62cfcf060e ("nvmet: handle rw's limited retry flag")
Reported-by kernel test robot <[email protected]>
Cc Guixin Liu <[email protected]>
Signed-off-by Keith Busch <[email protected]>
--- drivers/nvme/target/io-cmd-bdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/target/io-cmd-bdev.c +1 -1
@@ -272,7 +272,7 @@ static void nvmet_bdev_execute_rw(struct nvmet_req *req) iter_flags =SG_MITER_FROM_SG ; } -if (req->cmd->rw.control &NVME_RW_LR ) +if (req->cmd->rw.control &cpu_to_le16 (NVME_RW_LR )) opf |=REQ_FAILFAST_DEV ;if (is_pci_p2pdma_page (sg_page (req->sg)))
Signature · 1 line
2.43.5
Quoted 7 lines · Keith Busch
From: Keith Busch<[email protected]>
Fixes 3ec5c62cfcf060e ("nvmet: handle rw's limited retry flag")Reported-by kernel test robot<[email protected]>Cc Guixin Liu<[email protected]>Signed-off-by Keith Busch<[email protected]>
Looks good.
Reviewed-by Chaitanya Kulkarni <[email protected]>
-ck