mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fuse: show the io_uring mount option
@ 2025-12-25  5:50 Kuang Kai
  2025-12-25 21:34 ` Bernd Schubert
  0 siblings, 1 reply; 3+ messages in thread
From: Kuang Kai @ 2025-12-25  5:50 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel, linux-kernel, kuangkai, kk47yx

From: kuangkai <kuangkai@kylinos.cn>

mount with io_uring options will not work if the kernel parameter of /sys/module/fuse/parameters/enable_uring has not been set,
displaying this option can help confirm whether the fuse over io_uring function is enabled.

Signed-off-by: kuangkai <kuangkai@kylinos.cn>
---
 fs/fuse/inode.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 21e04c394a80..190de3f29552 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -937,6 +937,11 @@ static int fuse_show_options(struct seq_file *m, struct dentry *root)
 		seq_puts(m, ",dax=inode");
 #endif
 
+#ifdef CONFIG_FUSE_IO_URING
+	if (fc->io_uring)
+		seq_puts(m, ",io_uring");
+#endif
+
 	return 0;
 }
 
-- 
2.39.2 (Apple Git-143)


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

* Re: [PATCH] fuse: show the io_uring mount option
  2025-12-25  5:50 [PATCH] fuse: show the io_uring mount option Kuang Kai
@ 2025-12-25 21:34 ` Bernd Schubert
  2025-12-29 21:31   ` Joanne Koong
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Schubert @ 2025-12-25 21:34 UTC (permalink / raw)
  To: Kuang Kai, miklos; +Cc: linux-fsdevel, linux-kernel, kk47yx



On 12/25/25 06:50, Kuang Kai wrote:
> From: kuangkai <kuangkai@kylinos.cn>
> 
> mount with io_uring options will not work if the kernel parameter of /sys/module/fuse/parameters/enable_uring has not been set,
> displaying this option can help confirm whether the fuse over io_uring function is enabled.

The problem is that is io_uring is not a mount option, showing it as
such would not be right. Maybe showing all FUSE_INIT parameters should
be added in /sys?

Thanks,
Bernd

> 
> Signed-off-by: kuangkai <kuangkai@kylinos.cn>
> ---
>  fs/fuse/inode.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
> index 21e04c394a80..190de3f29552 100644
> --- a/fs/fuse/inode.c
> +++ b/fs/fuse/inode.c
> @@ -937,6 +937,11 @@ static int fuse_show_options(struct seq_file *m, struct dentry *root)
>  		seq_puts(m, ",dax=inode");
>  #endif
>  
> +#ifdef CONFIG_FUSE_IO_URING
> +	if (fc->io_uring)
> +		seq_puts(m, ",io_uring");
> +#endif
> +
>  	return 0;
>  }
>  


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

* Re: [PATCH] fuse: show the io_uring mount option
  2025-12-25 21:34 ` Bernd Schubert
@ 2025-12-29 21:31   ` Joanne Koong
  0 siblings, 0 replies; 3+ messages in thread
From: Joanne Koong @ 2025-12-29 21:31 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: Kuang Kai, miklos, linux-fsdevel, linux-kernel, kk47yx

On Thu, Dec 25, 2025 at 1:34 PM Bernd Schubert <bernd@bsbernd.com> wrote:
>
>
>
> On 12/25/25 06:50, Kuang Kai wrote:
> > From: kuangkai <kuangkai@kylinos.cn>
> >
> > mount with io_uring options will not work if the kernel parameter of /sys/module/fuse/parameters/enable_uring has not been set,
> > displaying this option can help confirm whether the fuse over io_uring function is enabled.
>
> The problem is that is io_uring is not a mount option, showing it as
> such would not be right. Maybe showing all FUSE_INIT parameters should
> be added in /sys?

Or maybe showing all FUSE_INIT parameters through libfuse to something
like /var/run/$UID/libfuse instead of doing it through /sys/fs/ and
the kernel? I think other connection state could be added there too,
eg the name or pid corresponding to the server.

Thanks,
Joanne

>
> Thanks,
> Bernd
>

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

end of thread, other threads:[~2025-12-29 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-25  5:50 [PATCH] fuse: show the io_uring mount option Kuang Kai
2025-12-25 21:34 ` Bernd Schubert
2025-12-29 21:31   ` Joanne Koong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®