Re: merging discard request in the block layer
From: Christoph Hellwig
Date: Wed Mar 30 2011 - 10:16:31 EST
On Tue, Mar 22, 2011 at 10:03:57PM +0100, Jens Axboe wrote:
> On 2011-03-22 20:54, Jens Axboe wrote:
> > On 2011-03-22 20:47, Christoph Hellwig wrote:
> >> It seems the current block layer wil happily try to merge discard
> >> requests that were split because they are at the max that bi_size
> >> can hold together again. At least that's what the
> >>
> >> blk: request botched
> >
> > That would seem to indicate a bug in the merging logic instead.
>
> What kind of max discard size does you device have? If the max discard
> size is smaller than the regular request size, this could help.
I've done some heavier test, and both the extended check for mergeable
requests or your patch with different limits hangs the test box hard
with no way to get a backtrace. Using my original patch to completely
skip the merging logic seems to work fine.
--
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/