On 11/26/24 9:49 PM, Christoph Hellwig wrote: > On Tue, Nov 26, 2024 at 08:26:13PM +0900, Damien Le Moal wrote: >> Note that I tried qd > 1 with libaio and everything works just fine: the test >> passes. Things are strange only with io_uring. > > It might be worth checking if it has something to do with REQ_NOWAIT > writes and error handling for their EAGAIN case. Yes, the issue is related to this. If I clear REQ_NOWAIT from all BIOs that go through write plug, the problem disappears. Now trying to figure out the best way to address this as I do not think that always clearing REQ_NOWAIT is the best solution (plugging a BIO in a zone write plug does not block the caller...). -- Damien Le Moal Western Digital Research