Re: [PATCH 1/3] nfsd: use __fput_sync() to avoid delayed closing of files.

From: Chuck Lever III
Date: Fri Dec 15 2023 - 14:36:23 EST




> On Dec 15, 2023, at 1:27 PM, David Laight <David.Laight@xxxxxxxxxx> wrote:
>
> ...
>
> I'm also sure I remember that nfs wasn't supposed to respond to a write
> until it had issued the actual disk write - but maybe no one do that
> any more because it really is too slow.
> (Especially if the 'disk' is a USB stick.)

That rule applies only to NFSv2, which no-one should use any more.

NFSv3 and later use a two-phase write. Clients send a COMMIT after
an UNSTABLE WRITE to get the persistence guarantee.

--
Chuck Lever