blkcg: clean up blkg_tryget_closest()
[sfrench/cifs-2.6.git] / block / bio.c
index c288b90570423682f32053bff15d8a29621a71cb..9194d8ad3d5e23535e5752c18c8e7882a81c848e 100644 (file)
@@ -2096,8 +2096,12 @@ EXPORT_SYMBOL_GPL(bio_associate_blkg);
  */
 void bio_clone_blkg_association(struct bio *dst, struct bio *src)
 {
+       rcu_read_lock();
+
        if (src->bi_blkg)
                __bio_associate_blkg(dst, src->bi_blkg);
+
+       rcu_read_unlock();
 }
 EXPORT_SYMBOL_GPL(bio_clone_blkg_association);
 #endif /* CONFIG_BLK_CGROUP */