Skip to content
Commit e9ffa5c2 authored by Jackie Liu's avatar Jackie Liu Committed by Jens Axboe
Browse files

io_uring: set -EINTR directly when a signal wakes up in io_cqring_wait



We didn't use -ERESTARTSYS to tell the application layer to restart the
system call, but instead return -EINTR. we can set -EINTR directly when
wakeup by the signal, which can help us save an assignment operation and
comparison operation.

Reviewed-by: default avatarBob Liu <bob.liu@oracle.com>
Signed-off-by: default avatarJackie Liu <liuyun01@kylinos.cn>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 62755e35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment