From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Ming Lei , Alan Stern , Johannes Thumshirn Subject: [PATCH 3/3] blk-mq: Enable support for runtime power management Date: Tue, 17 Jul 2018 16:49:40 -0700 Message-Id: <20180717234940.11231-4-bart.vanassche@wdc.com> In-Reply-To: <20180717234940.11231-1-bart.vanassche@wdc.com> References: <20180717234940.11231-1-bart.vanassche@wdc.com> List-ID: 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 Cc: Christoph Hellwig Cc: Ming Lei Cc: Alan Stern Cc: Johannes Thumshirn --- block/blk-core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 65d7f27c8c22..5aade9fa96be 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -3739,10 +3739,6 @@ EXPORT_SYMBOL(blk_finish_plug); */ 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