]> Git Repo - linux.git/commit
io_uring: fix io_queue_proc modifying req->flags
authorPavel Begunkov <[email protected]>
Thu, 7 Mar 2024 18:06:32 +0000 (18:06 +0000)
committerJens Axboe <[email protected]>
Thu, 7 Mar 2024 18:10:28 +0000 (11:10 -0700)
commit1a8ec63b2b6c91caec87d4e132b1f71b5df342be
treec9a4da1dbe1a3cfd3df5b3843547e48c8ad9deac
parent70581dcd0601a09f134f23268e3374e15d736824
io_uring: fix io_queue_proc modifying req->flags

With multiple poll entries __io_queue_proc() might be running in
parallel with poll handlers and possibly task_work, we should not be
carelessly modifying req->flags there. io_poll_double_prepare() handles
a similar case with locking but it's much easier to move it into
__io_arm_poll_handler().

Cc: [email protected]
Fixes: 595e52284d24a ("io_uring/poll: don't enable lazy wake for POLLEXCLUSIVE")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/455cc49e38cf32026fa1b49670be8c162c2cb583.1709834755.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
io_uring/poll.c
This page took 0.048739 seconds and 4 git commands to generate.