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

From: Oliver Xymoron (oxymoron@waste.org)
Date: Fri Jun 14 2002 - 20:38:21 EST


On Fri, 14 Jun 2002, Andrew Morton wrote:

> A poorly-written gigE driver could zoom in and steal the remaining
> few megabytes from interrupt context. But even then, the BIO mempools
> would have to be exhausted at the time. And I don't see a way in which
> they can be exhausted without us having write BIOs in flight.
>
> No, I can't prove it. But I can't think of a contrary scenario
> either.

NBD and iSCSI are two examples that come to mind. Error-handling on the
SCSI stack might get you into trouble too (though you'd probably lose
there anyway). I suspect LVM might need to alloc memory to back snapshots,
but I haven't looked at that. I won't even mention loopback.

But for all the boring scenarios, you should be fine.

-- 
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."

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



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:32 EST