lkml.org 
[lkml]   [2002]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bio_chain: proposed solution for bio_alloc failure and large IO simplification
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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.041 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site