io_uring/msg_ring: avoid double indirection task_work for fd passing
authorJens Axboe <axboe@kernel.dk>
Fri, 24 May 2024 20:56:36 +0000 (14:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Jun 2024 18:49:51 +0000 (12:49 -0600)
commitf1d7dd0c33b484443c1a16ac3fab9bc4d129eb4e
treea66ccd702acd773aaaf4a359b832fb4820882c9e
parent780f1e5e03b5fc235233d02c92eefed1b8af47e6
io_uring/msg_ring: avoid double indirection task_work for fd passing

Like what was done for MSG_RING data passing avoiding a double task_work
roundtrip for IORING_SETUP_DEFER_TASKRUN, implement the same model for
fd passing. File descriptor passing is separately locked anyway, so the
only remaining issue is CQE posting, just like it was for data passing.
And for that, we can use the same approach.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/msg_ring.c