blkcg: reassociate bios when make_request() is called recursively
[sfrench/cifs-2.6.git] / block / blk-core.c
index cdfabc5646da99e3afaa60699dc33eb0b5c1fe2d..3ed60723e2429d4902fb386b66cca59561151458 100644 (file)
@@ -2433,6 +2433,7 @@ blk_qc_t generic_make_request(struct bio *bio)
                        if (q)
                                blk_queue_exit(q);
                        q = bio->bi_disk->queue;
+                       bio_reassociate_blkg(q, bio);
                        flags = 0;
                        if (bio->bi_opf & REQ_NOWAIT)
                                flags = BLK_MQ_REQ_NOWAIT;