Re: [PATCH -next 1/2] nfs: nfs{,4}_file_flush should consume writeback error

From: chenxiaosong (A)
Date: Tue Apr 12 2022 - 09:46:57 EST


在 2022/3/6 23:08, Trond Myklebust 写道:

Just to clarify a little.

I don't see a need to consume the writeback errors on close(), unless
other filesystems do the same. If the intention is that fsync() should
see _all_ errors that haven't already been seen, then NFS should follow
the same semantics as all the other filesystems.


Other filesystem will _not_ clear writeback error on close().
And other filesystem will _not_ clear writeback error on async write() too.

Other filesystem _only_ clear writeback error on fsync() or sync write().

Should NFS follow the same semantics as all the other filesystems?