]> 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)
commitbf761c1e4fb3ecfd73839c97bc5297ba866db1bd
treea482434eb91daec509d893937b89b982fbd2ba90
parent659a91d406d385dac1bdd5a00f7ab6286253749b
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