Skip to content
Commit 02f7eab0 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: improve readability of blk_mq_end_request_batch()



It's faster and easier to read if we tolerate cur_hctx being NULL in
the "when to flush" condition. Rename last_hctx to cur_hctx while at it,
as it better describes the role of that variable.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 57a13a5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment