Thread (23 messages) 23 messages, 4 authors, 2018-08-07
STALE2876d
Revisions (2)
  1. v3 current
  2. v4 [diff vs current]

[PATCH v3 9/9] blk-mq: Enable support for runtime power management

From: Bart Van Assche <hidden>
Date: 2018-08-02 18:29:44
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

Now that the blk-mq core processes power management requests
(marked with RQF_PREEMPT) in other states than RPM_ACTIVE, enable
runtime power management for blk-mq.

Signed-off-by: Bart Van Assche <redacted>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jianchao Wang <redacted>
Cc: Ming Lei <redacted>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Johannes Thumshirn <redacted>
---
 block/blk-pm.c | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/block/blk-pm.c b/block/blk-pm.c
index c33c881f64df..d719cae766cf 100644
--- a/block/blk-pm.c
+++ b/block/blk-pm.c
@@ -66,10 +66,6 @@ void blk_pm_runtime_unlock(struct request_queue *q)
  */
 void blk_pm_runtime_init(struct request_queue *q, struct device *dev)
 {
-	/* not support for RQF_PM and ->rpm_status in blk-mq yet */
-	if (q->mq_ops)
-		return;
-
 	q->dev = dev;
 	q->rpm_status = RPM_ACTIVE;
 	pm_runtime_set_autosuspend_delay(q->dev, -1);
-- 
2.18.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help