scsi: ufs: Disable blk-mq for now
authorAdrian Hunter <[email protected]>
Thu, 13 Sep 2018 11:28:48 +0000 (14:28 +0300)
committerMartin K. Petersen <[email protected]>
Fri, 21 Sep 2018 01:58:42 +0000 (21:58 -0400)
blk-mq does not support runtime pm, so disable blk-mq support for now.

Fixes: d5038a13eca7 ("scsi: core: switch to scsi-mq by default")
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/ufs/ufshcd.c

index 9d5d2ca7fc4ff6648127abdbd32947dec5182dee..c55f38ec391ca7d07e5ae1714168596f64acb125 100644 (file)
@@ -7940,6 +7940,13 @@ int ufshcd_alloc_host(struct device *dev, struct ufs_hba **hba_handle)
                err = -ENOMEM;
                goto out_error;
        }
+
+       /*
+        * Do not use blk-mq at this time because blk-mq does not support
+        * runtime pm.
+        */
+       host->use_blk_mq = false;
+
        hba = shost_priv(host);
        hba->host = host;
        hba->dev = dev;