From: "José Pekkarinen" <koalinux@gmail.com>
To: axboe@kernel.dk, linux-block@vger.kernel.org
Subject: Disable pm on runtime.
Date: Mon, 18 Dec 2017 15:07:22 +0200 [thread overview]
Message-ID: <1874121.sq8PTU63rf@bee> (raw)
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
Hi,
I hit issues booting my laptop when running on battery thanks to commit
765e40b675a9566459ddcb8358ad16f3b8344bbe given that I don't have any ssd/nvme
on it. Given that I decided to disable the option to default scsi to
multiqueue, but still my booting issues persist. For a while I was reverting
this patch successfully but nowadays that is not anymore possible. Would it be
possible to accept some patch like the one attached to ease this situation?
Thanks!
José Pekkarinen.
[-- Attachment #2: 0001-Disable-pm-only-when-scsi-mq-is-default-by-config.patch --]
[-- Type: text/x-patch, Size: 936 bytes --]
From 05ca41296d7c4c2494ac08c94ad5539914e5131a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Pekkarinen?= <koalinux@gmail.com>
Date: Mon, 18 Dec 2017 14:52:12 +0200
Subject: [PATCH] Disable pm only when scsi mq is default by config.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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-18 13:07 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=1874121.sq8PTU63rf@bee \
--to=koalinux@gmail.com \
--cc=axboe@kernel.dk \
--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 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).