qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [QEMU/FUSE] Discussion on Proper Termination and Async Cancellation in fuse-over-io_uring
@ 2025-08-01 16:09 Brian Song
  2025-08-03 23:33 ` Brian Song
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Song @ 2025-08-01 16:09 UTC (permalink / raw)
  To: bschubert, qemu-block; +Cc: Kevin Wolf, Stefan Hajnoczi, qemu-devel

Hi Bernd,

We are currently working on implementing termination support for 
fuse-over-io_uring in QEMU, and right now we are focusing on how to 
clean up in-flight SQEs properly. Our main question is about how well 
the kernel supports robust cancellation for these fuse-over-io_uring 
SQEs. Does it actually implement cancellation beyond destroying the 
io_uring queue?

In QEMU FUSE export, we need a way to quickly and cleanly detach from 
the event loop and cancel any pending SQEs when an export is no longer 
in use. Ideally, we want to avoid the more drastic measure of having to 
close the entire /dev/fuse fd just to gracefully terminate outstanding 
operations.

We are not sure if there's an existing code path that supports async 
cancel for these in-flight SQEs in the fuse-over-io_uring setup, or if 
additional callbacks might be needed to fully integrate with the 
kernel's async cancel mechanism. We also realized libfuse manages 
shutdowns differently, typically by signaling a thread via eventfd 
rather than relying on async cancel.

Would love to hear your thoughts or suggestions on this!

Thanks,
Brian


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

end of thread, other threads:[~2025-08-07 15:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-01 16:09 [QEMU/FUSE] Discussion on Proper Termination and Async Cancellation in fuse-over-io_uring Brian Song
2025-08-03 23:33 ` Brian Song
2025-08-04 11:33   ` Bernd Schubert
2025-08-04 12:29     ` Kevin Wolf
2025-08-05  4:11     ` Brian Song
2025-08-07  9:05       ` Bernd Schubert
2025-08-07 15:15         ` Stefan Hajnoczi

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).