mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
blkcg: put back rcu lock in blkcg_bio_issue_check()
I was a little overzealous in removing the rcu_read_lock() call from
blkcg_bio_issue_check() and it broke blk-throttle. Put it back.
Fixes: e35403a034bf ("blkcg: associate blkg when associating a device")
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d3fcdff190
commit
4705de735b
1 changed files with 3 additions and 0 deletions
|
|
@ -764,6 +764,8 @@ static inline bool blkcg_bio_issue_check(struct request_queue *q,
|
|||
struct blkcg_gq *blkg;
|
||||
bool throtl = false;
|
||||
|
||||
rcu_read_lock();
|
||||
|
||||
if (!bio->bi_blkg) {
|
||||
char b[BDEVNAME_SIZE];
|
||||
|
||||
|
|
@ -791,6 +793,7 @@ static inline bool blkcg_bio_issue_check(struct request_queue *q,
|
|||
|
||||
blkcg_bio_issue_init(bio);
|
||||
|
||||
rcu_read_unlock();
|
||||
return !throtl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue