Re: [PATCH 4/4] xfs: fallback to buffered I/O for direct I/O when stable writes are required

Qu Wenruo
2025-10-30T07:14:31Z

在 2025/10/30 17:25, Christoph Hellwig 写道:
> On Thu, Oct 30, 2025 at 05:23:32PM +1030, Qu Wenruo wrote:
>>> So what is your application going to do if the open fails?
>>
>> If it can not accept buffered fallback, error out.
>
> Why would it not be able to accept that?
>

Because for whatever reasons, although the only reason I can come up
with is performance.

I thought the old kernel principle is, providing the mechanism not the
policy.
But the fallback-to-buffered looks more like a policy, and if that's the
case user space should be more suitable.

Thanks,
Qu