]> www.infradead.org Git - users/willy/pagecache.git/commit
fuse: prevent disabling io-uring on active connections
authorBernd Schubert <bschubert@ddn.com>
Thu, 23 Jan 2025 16:55:32 +0000 (17:55 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 27 Jan 2025 17:02:23 +0000 (18:02 +0100)
commit2d4fde59fd502a65c1698b61ad4d0f10a9ab665a
tree6eed6005e9e5b0bbc1ac602e75c94ec10bb1982c
parent786412a73e7ee5b00ef3437bbf2f3a250759b2ae
fuse: prevent disabling io-uring on active connections

The enable_uring module parameter allows administrators to enable/disable
io-uring support for FUSE at runtime. However, disabling io-uring while
connections already have it enabled can lead to an inconsistent state.

Fix this by keeping io-uring enabled on connections that were already using
it, even if the module parameter is later disabled. This ensures active
FUSE mounts continue to function correctly.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Reviewed-by: Luis Henriques <luis@igalia.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev_uring.c