Skip to content

Commit 786412a

Browse files
bsberndMiklos Szeredi
authored andcommitted
fuse: enable fuse-over-io-uring
All required parts are handled now, fuse-io-uring can be enabled. Signed-off-by: Bernd Schubert <bschubert@ddn.com> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> # io_uring Reviewed-by: Luis Henriques <luis@igalia.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 3393ff9 commit 786412a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/fuse/dev.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,6 +2493,9 @@ const struct file_operations fuse_dev_operations = {
24932493
.fasync = fuse_dev_fasync,
24942494
.unlocked_ioctl = fuse_dev_ioctl,
24952495
.compat_ioctl = compat_ptr_ioctl,
2496+
#ifdef CONFIG_FUSE_IO_URING
2497+
.uring_cmd = fuse_uring_cmd,
2498+
#endif
24962499
};
24972500
EXPORT_SYMBOL_GPL(fuse_dev_operations);
24982501

fs/fuse/dev_uring.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,7 @@ static int fuse_uring_register(struct io_uring_cmd *cmd,
10841084
* Entry function from io_uring to handle the given passthrough command
10851085
* (op code IORING_OP_URING_CMD)
10861086
*/
1087-
int __maybe_unused fuse_uring_cmd(struct io_uring_cmd *cmd,
1088-
unsigned int issue_flags)
1087+
int fuse_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags)
10891088
{
10901089
struct fuse_dev *fud;
10911090
struct fuse_conn *fc;

0 commit comments

Comments
 (0)