]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix missing blkcg_bio_issue_init
authorMuchun Song <songmuchun@bytedance.com>
Wed, 13 Jul 2022 14:02:26 +0000 (22:02 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 16:54:49 +0000 (10:54 -0600)
commit33cfe03786ad7d88ab88f43a760ca9a02775fabf
tree44ec9c9d637dbb36bd9ca51aca5a91abb1dcbbc5
parente3446327ed132e962cfcf652eea394ae1cee65ee
block: fix missing blkcg_bio_issue_init

The commit 8778889405bf ("block: remove superfluous calls to
blkcg_bio_issue_init") has removed blkcg_bio_issue_init from
__bio_clone since submit_bio will override ->bi_issue.
However, __blk_queue_split is called after blkcg_bio_issue_init
(see blk_mq_submit_bio) in submit_bio. In this case, the
->bi_issue is 0. Fix it.

Fixes: 8778889405bf ("block: remove superfluous calls to blkcg_bio_issue_init")
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Link: https://lore.kernel.org/r/20220713140226.68135-1-songmuchun@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c