Re:Re: [PATCH 2/3] ntfs: drain in-flight DIO before buffered write fallback

From: jiale yao

Date: Thu Sep 24 2026 - 08:28:46 EST


Hi Baolin,

You're right. NTFS advertises FMODE_NOWAIT, and clearing IOCB_DIRECT
does not make it valid to block in inode_dio_wait().

I will check IOCB_NOWAIT before entering the buffered fallback. If
iomap_dio_rw() has not written any data, the path will return -EAGAIN.
If it completed a partial write, it will return the positive short-write
result without entering the potentially blocking fallback.

I will address this in v2, after 24h.

Thanks,
Jiale