diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-07-19 15:42:46 +0200 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-07-22 14:47:12 +0200 |
commit | e1e7b117ede7d78abde3ca13545a2057b4160b50 (patch) | |
tree | 584362df2da476a8ba2fa66d56cec671743e2cfb | |
parent | 6d02f5d763b1f1da54c3108707fb2ce6677fb1d0 (diff) | |
download | libfuse-e1e7b117ede7d78abde3ca13545a2057b4160b50.tar.gz |
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 <bschubert@ddn.com>
-rw-r--r-- | lib/fuse_uring.c | 14 |
1 files changed, 3 insertions, 11 deletions
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; } |