IO-Uring Archive on
 help / color / Atom feed
* [PATCH] io_uring: transform send/recvmsg() -ERESTARTSYS to -EINTR
@ 2019-12-03  2:51 Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2019-12-03  2:51 UTC (permalink / raw)
  To: io-uring

We should never return -ERESTARTSYS to userspace, transform it into

Cc: # v5.3+
Signed-off-by: Jens Axboe <>


diff --git a/fs/io_uring.c b/fs/io_uring.c
index 5cab7a047317..a91743e1fa2c 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1917,6 +1917,8 @@ static int io_send_recvmsg(struct io_kiocb *req, const struct io_uring_sqe *sqe,
  		ret = fn(sock, msg, flags);
  		if (force_nonblock && ret == -EAGAIN)
  			return ret;
+		if (ret == -ERESTARTSYS)
+			ret = -EINTR;
  	io_cqring_add_event(req, ret);

Jens Axboe

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03  2:51 [PATCH] io_uring: transform send/recvmsg() -ERESTARTSYS to -EINTR Jens Axboe

IO-Uring Archive on

Archives are clonable:
	git clone --mirror io-uring/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 io-uring io-uring/ \
	public-inbox-index io-uring

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone