All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] nvmet: consider req->sg_cnt for inline bio
@ 2021-05-07  1:51 Chaitanya Kulkarni
  2021-05-07  1:51 ` [PATCH V2 1/2] nvmet: fix inline bio check for bdev-ns Chaitanya Kulkarni
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chaitanya Kulkarni @ 2021-05-07  1:51 UTC (permalink / raw)
  To: linux-nvme; +Cc: hch, sagi, Chaitanya Kulkarni

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


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-10  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07  1:51 [PATCH V2 0/2] nvmet: consider req->sg_cnt for inline bio Chaitanya Kulkarni
2021-05-07  1:51 ` [PATCH V2 1/2] nvmet: fix inline bio check for bdev-ns Chaitanya Kulkarni
2021-05-07  1:51 ` [PATCH V2 2/2] nvmet: fix inline bio check for passthru Chaitanya Kulkarni
2021-05-10  7:00 ` [PATCH V2 0/2] nvmet: consider req->sg_cnt for inline bio Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.