On Tue, 29 Aug 2023 at 18:11, Bernd Schubert <bschubert@xxxxxxx> wrote: > > Take a shared lock in fuse_cache_write_iter. This was already > done for FOPEN_DIRECT_IO in > > commit 153524053bbb ("fuse: allow non-extending parallel direct > writes on the same file") > > but so far missing for plain O_DIRECT. Server side needs > to set FOPEN_PARALLEL_DIRECT_WRITES in order to signal that > it supports parallel dio writes. Hmm, I think file_remove_privs() needs exclusive lock (due to calling notify_change()). And the fallback case also. Need to be careful with such locking changes... Thanks, Miklos