On 11/27/24 3:21 PM, Christoph Hellwig wrote: > On Tue, Nov 26, 2024 at 10:16:18PM -0800, Christoph Hellwig wrote: >> Did you trace where the bio_wouldblock_error is coming from? Probably >> a failing request allocation? Can we call the guts of blk_zone_plug_bio >> after allocating the request to avoid this? > > The easier option might be to simply to "unprepare" the bio > (i.e. undo the append op rewrite and sector adjustment), decrement > wp_offset and retun. Given that no one else could issue I/O > while we were trying to allocate the bio this should work just fine. Might be good enough. But will also need to clear the REQ_NOWAIT flag for the BIO if it is issued from the zone write plug BIO work. Because that one should not have to deal with all this. Let me try. -- Damien Le Moal Western Digital Research