ublk: return early if blk_should_fake_timeout()
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 20 Jun 2025 15:10:04 +0000 (09:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jul 2025 02:13:42 +0000 (20:13 -0600)
commit7ab741081be307e3ec5dc8ed55ed8fc0f5b2a0e3
treeca704a2d5466e6e3341b4ea95eb8332b0a712ce1
parent763ff02ce287c2e5c8a012d40bd2f3dab99ae5d5
ublk: return early if blk_should_fake_timeout()

Make the unlikely case blk_should_fake_timeout() return early to reduce
the indentation of the successful path.

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-11-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c