linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fuse: when are release requests queued?
@ 2017-05-25 23:08 Nikolaus Rath
  2017-05-26 15:17 ` [fuse-devel] " David Butterfield
  2017-05-27  1:39 ` Maxim Patlasov
  0 siblings, 2 replies; 15+ messages in thread
From: Nikolaus Rath @ 2017-05-25 23:08 UTC (permalink / raw)
  To: fuse-devel, linux-fsdevel

Hello,

I am trying to debug a sporadic test failure in libfuse
(https://github.com/libfuse/libfuse/issues/157).


Can someone tell me at which point the fuse kernel module will send a
RELEASE request to userspace? Is it possible that this is delayed until
after the close() syscall for the last fd has returned and userspace has
submitted a different fuse request for the same fs?


Looking at fs/fuse/file.c, it looks as if fuse_release() directly calls
fuse_request_send_background() to send the request. But at that point I
can no longer follow the code. Is it possible for another request to
sneak in at this point?

Furthermore, does the VFS call fuse_release() directly while handling
the close() syscall, or does this happen asynchronously later on?


Thanks!
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-05-31 20:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 23:08 fuse: when are release requests queued? Nikolaus Rath
2017-05-26 15:17 ` [fuse-devel] " David Butterfield
2017-05-26 23:11   ` Nikolaus Rath
2017-05-27  1:49     ` [fuse-devel] " Maxim Patlasov
2017-05-27  1:39 ` Maxim Patlasov
2017-05-29 16:49   ` Nikolaus Rath
2017-05-31 17:50     ` Maxim Patlasov
2017-05-31 19:19       ` Nikolaus Rath
2017-05-31 19:32         ` Maxim Patlasov
2017-05-31 19:41           ` Nikolaus Rath
     [not found]             ` <87inkgvmp0.fsf-Zv899e0YUSYPWKMTL/zdXNi2O/JbrIOy@public.gmane.org>
2017-05-31 19:51               ` Michael Theall
2017-05-31 20:34                 ` Nikolaus Rath
2017-05-31 20:23             ` [fuse-devel] " Maxim Patlasov
2017-05-31 20:31               ` Nikolaus Rath
2017-05-31 20:47                 ` Maxim Patlasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).