ublk: look up ublk task via its pid in timeout handler
authorMing Lei <ming.lei@redhat.com>
Sun, 13 Jul 2025 14:33:57 +0000 (22:33 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jul 2025 14:04:16 +0000 (08:04 -0600)
commitdd7a8507319e22141fa2e107d81cba18a4007d92
tree555258ff7f83fe2de1df990cf9e7ff044ff13532
parentc2c8089f325ed703fd5123b39e2dece1dd605904
ublk: look up ublk task via its pid in timeout handler

Look up ublk process via its pid in timeout handler, so we can avoid to
touch io->task, because it is fragile to touch task structure.

It is fine to kill ublk server process and this way is simpler.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250713143415.2857561-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c