]> git.baikalelectronics.ru Git - kernel.git/commit
block: improve readability of blk_mq_end_request_batch()
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Oct 2021 18:08:34 +0000 (12:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Oct 2021 18:08:34 +0000 (12:08 -0600)
commit17a46494582fab09610889c43392796b8cdf9a40
treea482434eb91daec509d893937b89b982fbd2ba90
parentd190e0cd71e7289b869909840c80f6a7c0433c74
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: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c