blk-mq: fix race between timeout and freeing request
[deliverable/linux.git] / block / blk.h
index 026d9594142bdedf1d5a0b919390bb54b3f857c1..838188b35a83f03696fba66cbb71728e402403bd 100644 (file)
@@ -22,6 +22,12 @@ struct blk_flush_queue {
        struct list_head        flush_queue[2];
        struct list_head        flush_data_in_flight;
        struct request          *flush_rq;
+
+       /*
+        * flush_rq shares tag with this rq, both can't be active
+        * at the same time
+        */
+       struct request          *orig_rq;
        spinlock_t              mq_flush_lock;
 };
 
This page took 0.02413 seconds and 5 git commands to generate.