Re: bio_chain: proposed solution for bio_alloc failure and large IO simplification

Jens Axboe (axboe@suse.de)
Sat, 15 Jun 2002 09:55:51 +0200


On Fri, Jun 14 2002, Adam J. Richter wrote:
> Andrew Morton <akpm@zip.com.au> wrote:
> >I have not yet seen a BIO allocation failure in testing. This
> >would indicate that either the BIO pool is too large, or I'm
> >running the wrong tests. Either way, I don't think we have
> >demonstrated any otherwise-unsolvable problems with BIO allocation.
>
> You need to prove that this can never happen once the
> device is initialized, not just that no 2.5 user has reported it
> yet.

The I/O path allocations all use GFP_NOIO (or GFP_NOFS), which all have
__GFP_WAIT set. So the bio allocations will try normal allocation first,
then fall back to the bio pool. If the bio pool is also empty, we will
block waiting for entries to be freed there. So there never will be a
failure.

-- 
Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/