* [PATCH] Disable pm only when scsi mq is default by config.
@ 2017-12-19 8:34 José Pekkarinen
0 siblings, 0 replies; only message in thread
From: José Pekkarinen @ 2017-12-19 8:34 UTC (permalink / raw)
To: linux-block; +Cc: José Pekkarinen
This patch allow pm on systems that explicitly disable scsi mq as
a default.
Signed-off-by: José Pekkarinen <koalinux@gmail.com>
---
block/blk-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/blk-core.c b/block/blk-core.c
index 33ee583cfe45..68183bc5933f 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -3440,9 +3440,11 @@ EXPORT_SYMBOL(blk_finish_plug);
*/
void blk_pm_runtime_init(struct request_queue *q, struct device *dev)
{
+#ifdef CONFIG_SCSI_MQ_DEFAULT
/* not support for RQF_PM and ->rpm_status in blk-mq yet */
if (q->mq_ops)
return;
+#endif
q->dev = dev;
q->rpm_status = RPM_ACTIVE;
--
2.13.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-19 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 8:34 [PATCH] Disable pm only when scsi mq is default by config José Pekkarinen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.