Re:Re: [PATCH 2/3] ntfs: drain in-flight DIO before buffered write fallback
From: jiale yao
Date: Sat Sep 26 2026 - 03:30:36 EST
Hi Baolin,
At 2026-09-24 20:04:14, "liubaolin" <liubaolin12138@xxxxxxx> wrote:
>Hi Jiale,
> This fallback path can still have IOCB_NOWAIT set, but
>inode_dio_wait() blocks when there is outstanding DIO. Clearing
>IOCB_DIRECT does not clear IOCB_NOWAIT.
>
> In comparison, ext4_buffered_write_iter() rejects NOWAIT requests
>before reaching the wait.
>
> Could we also handle IOCB_NOWAIT before entering this potentially
>blocking fallback?
> If no bytes have been written, we can return -EAGAIN; if some DIO has
>already completed, we should preserve the positive short-write result.
V2 is here, https://lore.kernel.org/all/20260926072612.3022680-1-yaojiale02@xxxxxxx
Jiale