]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/blk.h
blk-mq: fix race between timeout and freeing request
[mirror_ubuntu-bionic-kernel.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;
 };