Commit 892d3e80 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent c9197900
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment