All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvmet: consider req->sg_cnt for inline bio
@ 2021-04-29 18:43 Chaitanya Kulkarni
  2021-04-29 18:43 ` [PATCH 1/2] nvmet: check sg_cnt for inline bio for bdev-ns Chaitanya Kulkarni
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Chaitanya Kulkarni @ 2021-04-29 18:43 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

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


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

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

end of thread, other threads:[~2021-05-05  5:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 18:43 [PATCH 0/2] nvmet: consider req->sg_cnt for inline bio Chaitanya Kulkarni
2021-04-29 18:43 ` [PATCH 1/2] nvmet: check sg_cnt for inline bio for bdev-ns Chaitanya Kulkarni
2021-05-04 20:00   ` Sagi Grimberg
2021-05-04 22:03   ` Chaitanya Kulkarni
2021-05-05  5:06     ` hch
2021-04-29 18:43 ` [PATCH 2/2] nvmet: check sg_cnt for inline bio for passthru Chaitanya Kulkarni
2021-05-04 20:00   ` Sagi Grimberg
2021-05-04  8:56 ` [PATCH 0/2] nvmet: consider req->sg_cnt for inline bio Christoph Hellwig
2021-05-04 21:16   ` Chaitanya Kulkarni
2021-05-05  4:57     ` Christoph Hellwig
2021-05-04 20:01 ` Sagi Grimberg

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.