Re: [PATCH v2] block: make sure big bio is splitted into at most 256 bvecs

From: Ming Lei
Date: Fri Aug 12 2016 - 07:12:18 EST


On Thu, Aug 11, 2016 at 10:02 PM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> Please just fix bcache to not submit bios larger than BIO_MAX_PAGES for
> now, until we can support such callers in general and enable common
> used code to do so.

IMO it can't be efficient to do that in bcache because it need to figure out
how many bvecs one bio includes.

This patch(block: make sure big bio is splitted into at most 256 bvecs)
can support such callers.

Also this kind of usage does simplify drivers.

Thanks,
Ming

> --
> To unsubscribe from this list: send the line "unsubscribe linux-block" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html