blkcg: put back rcu lock in blkcg_bio_issue_check()
[sfrench/cifs-2.6.git] / include / linux / blk-cgroup.h
index 752de1becb5ced1a916cf8fc553882764e97bc3d..bf13ecb0fe4f67189af465751cca98a441463f15 100644 (file)
@@ -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;
 }