All of lore.kernel.org
 help / color / mirror / Atom feed
From: "José Pekkarinen" <koalinux@gmail.com>
To: linux-block@vger.kernel.org
Cc: "José Pekkarinen" <koalinux@gmail.com>
Subject: [PATCH] Disable pm only when scsi mq is default by config.
Date: Tue, 19 Dec 2017 10:34:40 +0200	[thread overview]
Message-ID: <20171219083440.17831-1-koalinux@gmail.com> (raw)

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

                 reply	other threads:[~2017-12-19  8:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171219083440.17831-1-koalinux@gmail.com \
    --to=koalinux@gmail.com \
    --cc=linux-block@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.