Skip to content

Commit 6952a7f

Browse files
Ming Leiaxboe
authored andcommitted
block: split bio if the only bvec's length is > SZ_4K
64K PAGE_SIZE is popular on ARM64 or other ARCHs, and 64K has been big enough to break some devices probably, so change the logic to split bio if the only bvec's length is > SZ_4K instead of PAGE_SIZE. Fixes: fa53228 (block: avoid blk_bio_segment_split for small I/O operations) Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 59db8ba commit 6952a7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-merge.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void __blk_queue_split(struct request_queue *q, struct bio **bio,
320320
if (!q->limits.chunk_sectors &&
321321
(*bio)->bi_vcnt == 1 &&
322322
((*bio)->bi_io_vec[0].bv_len +
323-
(*bio)->bi_io_vec[0].bv_offset) <= PAGE_SIZE) {
323+
(*bio)->bi_io_vec[0].bv_offset) <= SZ_4K) {
324324
*nr_segs = 1;
325325
break;
326326
}

0 commit comments

Comments
 (0)