Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ublk: remove task variable from __ublk_ch_uring_cmd()

The variable is computed from a simple expression and used once, so just
replace it with the expression.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250620151008.3976463-6-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Caleb Sander Mateos and committed by
Jens Axboe
be4f1b61 ee977363

+1 -3
+1 -3
drivers/block/ublk_drv.c
··· 2189 2189 const struct ublksrv_io_cmd *ub_cmd) 2190 2190 { 2191 2191 struct ublk_device *ub = cmd->file->private_data; 2192 - struct task_struct *task; 2193 2192 struct ublk_queue *ubq; 2194 2193 struct ublk_io *io; 2195 2194 u32 cmd_op = cmd->cmd_op; ··· 2224 2225 return -EIOCBQUEUED; 2225 2226 } 2226 2227 2227 - task = READ_ONCE(io->task); 2228 - if (task != current) 2228 + if (READ_ONCE(io->task) != current) 2229 2229 goto out; 2230 2230 2231 2231 /* there is pending io cmd, something must be wrong */