Re: [PATCH V3] bio: modify __bio_add_page() to accept pages that don't start a new segment
From: Ming Lei
Date: Tue May 27 2014 - 06:15:54 EST
Hi Maurizio,
On Thu, May 1, 2014 at 9:56 PM, Maurizio Lombardi <mlombard@xxxxxxxxxx> wrote:
> The original behaviour is to refuse to add a new page if the maximum number
> of segments has been reached, regardless of the fact the page we are
> going to add can be merged into the last segment or not.
If the page can be merged to last segment, it should have been
covered by code in branch of 'if (bio->bi_vcnt > 0) ...', shouldn't it?
Or maybe it is better to make that code cover your case since
looks your case is similar with that one according to your commit
log.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/