[PATCH V2 0/2] nvmet: consider req->sg_cnt for inline bio
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Thu May 6 18:51:34 PDT 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
* Changes from V1:-
1. Add a helper nvmet_use_inline_bio().
2. Add fixes tags.
3. Add reviewed by tags.
Chaitanya Kulkarni (2):
nvmet: fix inline bio check for bdev-ns
nvmet: fix inline bio check for passthru
drivers/nvme/target/io-cmd-bdev.c | 2 +-
drivers/nvme/target/nvmet.h | 6 ++++++
drivers/nvme/target/passthru.c | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
--
2.22.1
More information about the Linux-nvme
mailing list