io_uring/uring_cmd: get rid of using req->imu
authorJens Axboe <axboe@kernel.dk>
Wed, 16 Oct 2024 21:48:38 +0000 (15:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 13:31:09 +0000 (07:31 -0600)
commit6425fa6b4323efc65588748f311c9d9c9cf9138d
treea96be5820637a090ad9fa7a7f08952fb70efa56f
parenta047fce775cfd2ee395fcfb29a5e8fd4cc6638a8
io_uring/uring_cmd: get rid of using req->imu

It's pretty pointless to use io_kiocb as intermediate storage for this,
so split the validity check and the actual usage. The resource node is
assigned upfront at prep time, to prevent it from going away. The actual
import is never called with the ctx->uring_lock held, so grab it for
the import.

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