]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: remove "can't touch 'ublk_io' any more" comments
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 30 Jan 2026 15:25:30 +0000 (08:25 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 13:38:43 +0000 (06:38 -0700)
commit491af20b3c6d5baedb96357d4b12232ae490cbe7
tree63e9c0c67cb78256d401aed85143fd550bc5c1c7
parent2feca79ef8df5505b87c00812b9ba263b92c64ed
ublk: remove "can't touch 'ublk_io' any more" comments

The struct ublk_io is in fact accessed in __ublk_complete_rq() after the
comment. But it's not racy to access the ublk_io between clearing its
UBLK_IO_FLAG_OWNED_BY_SRV flag and completing the request, as no other
thread can use the ublk_io in the meantime.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c