Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix gaps detection in bio merges
@ 2015-09-03 16:28 Sagi Grimberg
  2015-09-03 16:28 ` [PATCH 1/4] block: Check for gaps on front and back merges Sagi Grimberg
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Sagi Grimberg @ 2015-09-03 16:28 UTC (permalink / raw)


This series makes gaps go away for real if a driver
asked to not see them (nvme and soon iser).

patch 1 addresses front merges where gaps weren't
checked at all.

patches 2,3 adds gap detection for integrity payloads.

patch 4 makes blk_rq_map_user_iov turn to bounce buffer
in case of an iovec with gaps.

I've been testing this for a couple of days now and I'll
run some more tests on this, but since it was very easy
to trigger these cases before I'm pretty sure we are covered.

Once this lands in, I will be able to get rid of the
bounce buffer logic in the iser driver as it will rely
on the block layer to get it right.

Jens Axboe (1):
  block: Check for gaps on front and back merges

Sagi Grimberg (3):
  block: Refuse request/bio merges with gaps in the integrity payload
  block: Refuse adding appending a gaped integrity page to a bio
  block: Copy a user iovec if it includes gaps

 block/bio-integrity.c  |  5 +++++
 block/blk-integrity.c  |  3 +++
 block/blk-map.c        | 26 ++++++++++++++++++++++++--
 block/blk-merge.c      | 25 ++++++++++++-------------
 include/linux/blkdev.h | 40 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 15 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2015-09-13  7:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 16:28 [PATCH 0/4] Fix gaps detection in bio merges Sagi Grimberg
2015-09-03 16:28 ` [PATCH 1/4] block: Check for gaps on front and back merges Sagi Grimberg
2015-09-03 16:28 ` [PATCH 2/4] block: Refuse request/bio merges with gaps in the integrity payload Sagi Grimberg
2015-09-03 16:28 ` [PATCH 3/4] block: Refuse adding appending a gaped integrity page to a bio Sagi Grimberg
2015-09-04  3:24   ` Martin K. Petersen
2015-09-06  7:46     ` Sagi Grimberg
2015-09-08 18:24       ` Martin K. Petersen
2015-09-10  9:10         ` Sagi Grimberg
2015-09-10 22:22           ` Martin K. Petersen
2015-09-13  7:53             ` Sagi Grimberg
2015-09-03 16:28 ` [PATCH 4/4] block: Copy a user iovec if it includes gaps Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox