linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC] scsi: ufs: Disable blk-mq for now
@ 2018-09-13 11:28 Adrian Hunter
  2018-09-13 12:05 ` Ming Lei
  2018-09-21  1:59 ` Martin K. Petersen
  0 siblings, 2 replies; 8+ messages in thread
From: Adrian Hunter @ 2018-09-13 11:28 UTC (permalink / raw)
  To: Martin K . Petersen, James E . J . Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Ming Lei, Johannes Thumshirn,
	Bart Van Assche, linux-scsi, linux-kernel, Stanislav Nijnikov,
	Evan Green, Vinayak Holikatti, Janek Kotas, Vivek Gautam,
	Asutosh Das, Subhash Jadavani, Sayali Lokhande, Li Wei,
	Bjorn Andersson, Jaegeuk Kim, Alim Akhtar, Alex Lemberg

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 <adrian.hunter@intel.com>
---
 drivers/scsi/ufs/ufshcd.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 40548bae8efa..a4d36497a047 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -7975,6 +7975,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;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-21  2:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 11:28 [PATCH RFC] scsi: ufs: Disable blk-mq for now Adrian Hunter
2018-09-13 12:05 ` Ming Lei
2018-09-13 12:15   ` Adrian Hunter
2018-09-14  1:52     ` Ming Lei
2018-09-14  6:17       ` Adrian Hunter
2018-09-14 13:03         ` Adrian Hunter
2018-09-20  6:58       ` Christoph Hellwig
2018-09-21  1:59 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).