Messages in this thread | | | Date | Mon, 29 Sep 2014 20:55:07 -0700 | Subject | Re: [PATCH 0/5] fuse: handle release synchronously (v4) | From | Linus Torvalds <> |
| |
On Thu, Sep 25, 2014 at 5:05 AM, Maxim Patlasov <MPatlasov@parallels.com> wrote: > > There is a long-standing demand for synchronous behaviour of fuse_release:
That's just complete bullshit.
The fact is, release() is not synchronous. End of story.
If you want to catch "close()" synchronously, you use flush(). The two are NOT the same, and never will be, and never should be confused.
"release()" happens at some random time (but only once), and cannot return an error.
"flush()" happens synchronously at close() time, and can return an error.
Anybody who confuses the two is *wrong*.
It sounds like somebody wants to use "flush()" in fuse. But please don't mistake that for "release". It's different.
So please kill this "FOPEN_SYNC_RELEASE" thing with fire. It's crazy, it's wrong, it's stupid. It must die.
Linus
| |