]> www.infradead.org Git - users/willy/xarray.git/commit
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, 29 Oct 2024 19:43:27 +0000 (13:43 -0600)
commit892d3e80e1b9fc09aefdfd4d31f10f3d018863a0
tree9f1b4453832d3ce96d6f976884dd5bbea88831a7
parentc919790060230ac2b1824bbf4d3b64eb51f471ff
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