io_uring/msg-ring: ensure flags passing works for task_work completions
authorJens Axboe <axboe@kernel.dk>
Sun, 22 Jan 2023 02:53:41 +0000 (19:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commit8572df941cbef2b295282535b013828e7df39471
treedad3d633b37be542fb90fd5146ba87f539db35f8
parentf30bd4d03824fb437bf080c2b2f926cfee3f09d0
io_uring/msg-ring: ensure flags passing works for task_work completions

If the target ring is using IORING_SETUP_SINGLE_ISSUER and we're posting
a message from a different thread, then we need to ensure that the
fallback task_work that posts the CQE knwos about the flags passing as
well. If not we'll always be posting 0 as the flags.

Fixes: 3563d7ed58a5 ("io_uring/msg_ring: Pass custom flags to the cqe")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/msg_ring.c