Skip to content
Commit 91ec6c85 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

Revert "fuse: in fuse_flush only wait if someone wants the return code"



This reverts commit 5a8bee63.

Jürg Billeter reports the following regression:

  Since v6.3-rc1 commit 5a8bee63 ("fuse: in fuse_flush only wait if
  someone wants the return code") `fput()` is called asynchronously if a
  file is closed as part of a process exiting, i.e., if there was no
  explicit `close()` before exit.

  If the file was open for writing, also `put_write_access()` is called
  asynchronously as part of the async `fput()`.

  If that newly written file is an executable, attempting to `execve()` the
  new file can fail with `ETXTBSY` if it's called after the writer process
  exited but before the async `fput()` has run.

Reported-and-tested-by: default avatar"Jürg Billeter" <j@bitron.ch>
Cc: <stable@vger.kernel.org> # v6.3
Link: https://lore.kernel.org/all/4f66cded234462964899f2a661750d6798a57ec0.camel@bitron.ch/


Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 2ccdd1b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment