Re: [RFC 8/8] IB/srp and direct IO: patches for testing large indirect tables

Or Gerlitz
2011-01-20T10:07:07Z

David Dillow wrote:
> Fix direct IO when doing more than 1 MB IOs -- proper patch to fix is
> floating in the ether as well, now landed in Andrew Morton's tree.

So what was the behavior without this patch? also can you send pointer
to that tree and mailing list this patch was submitted, I'd like to follow
on the discussion there, thanks,

Or.

> --- a/fs/direct-io.c
> +++ b/fs/direct-io.c
> @@ -583,6 +583,7 @@ static int dio_new_bio(struct dio *dio, sector_t start_sector)
> goto out;
> sector = start_sector << (dio->blkbits - 9);
> nr_pages = min(dio->pages_in_io, bio_get_nr_vecs(dio->map_bh.b_bdev));
> + nr_pages = min(nr_pages, BIO_MAX_PAGES);
> BUG_ON(nr_pages <= 0);
> ret = dio_bio_alloc(dio, dio->map_bh.b_bdev, sector, nr_pages);
> dio->boundary = 0;