]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: pre-calculate syscall iopolling decision
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 22 Mar 2022 14:07:57 +0000 (14:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Apr 2022 23:34:16 +0000 (17:34 -0600)
commit9d298f10f86746216ffe033e5f3f66ca8f0a3140
tree3d305a8336904e64720955ae541ed54ba2199115
parent6182f599240aada21639e8e1f731ea7200d15daf
io_uring: pre-calculate syscall iopolling decision

Syscall should only iopoll for events when it's a IOPOLL ring and is not
SQPOLL. Instead of check both flags every time we can save it in ring
flags so it's easier to use. We don't care much about an extra if there,
however it will be inconvenient to copy-paste this chunk with checks in
future patches.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/7fd2f8fc2606305aa06dd8c0ff8f76a66b39c383.1647957378.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c