mirror of https://gitee.com/openkylin/linux.git
blk-cgroup: remove a dead check in blk_throtl_bio
bios must have a valid block group by the time they are submitted. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
db18a53e5b
commit
a2e83ef9c3
|
@ -2163,7 +2163,7 @@ bool blk_throtl_bio(struct bio *bio)
|
|||
struct request_queue *q = bio->bi_disk->queue;
|
||||
struct blkcg_gq *blkg = bio->bi_blkg;
|
||||
struct throtl_qnode *qn = NULL;
|
||||
struct throtl_grp *tg = blkg_to_tg(blkg ?: q->root_blkg);
|
||||
struct throtl_grp *tg = blkg_to_tg(blkg);
|
||||
struct throtl_service_queue *sq;
|
||||
bool rw = bio_data_dir(bio);
|
||||
bool throttled = false;
|
||||
|
|
Loading…
Reference in New Issue