[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1455519687-23873-1-git-send-email-ming.lei@canonical.com>
Date: Mon, 15 Feb 2016 15:01:23 +0800
From: Ming Lei <ming.lei@...onical.com>
To: Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org
Cc: linux-block@...r.kernel.org, Christoph Hellwig <hch@...radead.org>,
Sagi Grimberg <sagig@....mellanox.co.il>
Subject: [PATCH 0/4] block: fix bio_will_gap()
Hi,
After bio splitting is introduced, the splitted bio can be fast-cloned,
which is correct because biovecs has become immutable since v3.13.
Unfortunately bio_will_gap() isn't ready for this kind of change,
because it figures out the last bvec via 'bi_io_vec[prev->bi_vcnt - 1]'
directly.
It is observed that lots of BIOs are merges even the virt boundary
limit is violated, and the issue is reported from Sagi Grimberg.
This patchset try to fix the issue by introducing two helpers for getting
the first and last bvec of one bio by the bio iterator helpers.
block/blk-merge.c | 8 ++------
include/linux/bio.h | 20 ++++++++++++++++++++
include/linux/blkdev.h | 11 ++++++++---
3 files changed, 30 insertions(+), 9 deletions(-)
Thanks,
Ming
Powered by blists - more mailing lists