Re: Reuse of BIOs

From: Jens Axboe
Date: Thu Sep 08 2005 - 08:19:40 EST


On Thu, Sep 08 2005, David Howells wrote:
>
> Hi Jens,
>
> Is it possible to reuse a BIO once the callback on it has been invoked to
> indicate final completion? Or does it have to be released and another one
> allocated?

If you reuse it indefinitely, you violate the principles that make the
mempool work. So the answer is 'yes' if you only reuse it a little, 'no'
if you want to hang on to it forever.

--
Jens Axboe

-
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/