io_uring: transform send/recvmsg() -ERESTARTSYS to -EINTR
authorJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 01:49:10 +0000 (18:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 01:49:10 +0000 (18:49 -0700)
commit441cdbd5449b4923cd413d3ba748124f91388be9
tree1eaafe0c65ca80c013c09d04628ad78cf98f8113
parent0b8c0ec7eedcd8f9f1a1f238d87f9b512b09e71a
io_uring: transform send/recvmsg() -ERESTARTSYS to -EINTR

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

Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c