[PATCH 0/2] nvmet: consider req->sg_cnt for inline bio
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Thu Apr 29 19:43:55 BST 2021
Hi,
While testing I came across the scenario where checking for the
transfer size is not enough for inline bios, this issue is not easily
reproducible with the test tools that I have.
This small patch-series adds an additional check so that we make sure
transfer size and the req->sg_cnt both fit in the inline bio for
bdev and passthru backend.
-ck
Chaitanya Kulkarni (2):
nvmet: check sg_cnt for inline bio for bdev-ns
nvmet: check sg_cnt for inline bio for passthru
drivers/nvme/target/io-cmd-bdev.c | 3 ++-
drivers/nvme/target/passthru.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
--
2.22.1
More information about the Linux-nvme
mailing list