From e1e7b117ede7d78abde3ca13545a2057b4160b50 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sat, 19 Jul 2025 15:42:46 +0200 Subject: fuse-over-io-uring: Remove handling of -EOPNOTSUPP -EOPNOTSUPP was in early RFC kernel patches, but merged version does not have this handler anymore. Closes: https://github.com/libfuse/libfuse/issues/1283 Signed-off-by: Bernd Schubert --- lib/fuse_uring.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'lib/fuse_uring.c') diff --git a/lib/fuse_uring.c b/lib/fuse_uring.c index a54973e..8dea7d0 100644 --- a/lib/fuse_uring.c +++ b/lib/fuse_uring.c @@ -553,8 +553,8 @@ static int fuse_uring_queue_handle_cqes(struct fuse_ring_queue *queue) //fuse_log(FUSE_LOG_ERR, "cqe res: %d\n", cqe->res); /* -ENOTCONN is ok on umount */ - if (err != -EINTR && err != -EOPNOTSUPP && - err != -EAGAIN && err != -ENOTCONN) { + if (err != -EINTR && err != -EAGAIN && + err != -ENOTCONN) { se->error = cqe->res; /* return first error */ @@ -701,22 +701,14 @@ static void *fuse_uring_thread(void *arg) io_uring_submit_and_wait(&queue->ring, 1); err = fuse_uring_queue_handle_cqes(queue); - if (err < 0) { - /* - * fuse-over-io-uring is not supported, operation can - * continue over /dev/fuse - */ - if (err == -EOPNOTSUPP) - goto ret; + if (err < 0) goto err; - } } return NULL; err: fuse_session_exit(se); -ret: return NULL; } -- cgit v1.2.3