Message ID | 20180809194149.15285-13-bart.vanassche@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61B1013BB for <patchwork-linux-block@patchwork.kernel.org>; Thu, 9 Aug 2018 19:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5252B2B97D for <patchwork-linux-block@patchwork.kernel.org>; Thu, 9 Aug 2018 19:42:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 469B72B97F; Thu, 9 Aug 2018 19:42:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 308EB2B983 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 9 Aug 2018 19:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727146AbeHIWIg (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Thu, 9 Aug 2018 18:08:36 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:1352 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbeHIWIg (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 9 Aug 2018 18:08:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1533843738; x=1565379738; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=HVQd5D2ZGcql0/6laoel+99luuFVPfcqfMXijqthEFY=; b=HA2yzBHyKKb+6IVR58+2DU83ybj3w4Hx5qrYKWjynPd4PESndgdKjSGM 2XM4UN/0xMpgeKqpq8fXx30X+B/Kzqq0ZHxRm6lFBIBEhkar0vH0Tl2fI 9FuYSCjQ9mNVHE21/hQgakkWPzsba88KfW0Sm4x3RdHa4UE+sfZwQsSNI wrpSTvyDVYGYIs1c2KXbT1oQgNfoSb5kvsYizJ6PGQQ5toNEQmxHqM4tJ 5J24ausYgtGNJES7iV0aXBA43ai3hc267RJa2ePEPnAHlUFoOQPmmjESb xM8dv/gZa58e7Z4TQC/wsNKBZwAHng0LWiIa5iLsBqu9A2+cAkJAJz13y Q==; X-IronPort-AV: E=Sophos;i="5.53,215,1531756800"; d="scan'208";a="191119607" Received: from mail-sn1nam01lp0115.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.115]) by ob1.hgst.iphmx.com with ESMTP; 10 Aug 2018 03:42:17 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YRCjT5Xvu0FwwnkxLL31tUUEilw6A1Rpa2M3qiFlREg=; b=UAyRMAc3YxV5KaWKcp1gh68mcRixzTgDy/tH0KP0anJ2SRtpu0FPwcLFuCpQTU4mmOELbAhUSSh/AZnt3rTBf7VGQNvHQ15pbSRTXf2g1fCaILwJBD9L8jZXf9fUcW6qBBZAdulbnda5znk//CcrDyWCGW94ksAe568VFgvSF2E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; Received: from asus.hsd1.ca.comcast.net (174.62.111.89) by MWHPR04MB1198.namprd04.prod.outlook.com (2603:10b6:300:71::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.23; Thu, 9 Aug 2018 19:42:12 +0000 From: Bart Van Assche <bart.vanassche@wdc.com> To: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>, Bart Van Assche <bart.vanassche@wdc.com>, Ming Lei <ming.lei@redhat.com>, Jianchao Wang <jianchao.w.wang@oracle.com>, Hannes Reinecke <hare@suse.com>, Johannes Thumshirn <jthumshirn@suse.de>, Alan Stern <stern@rowland.harvard.edu> Subject: [PATCH v6 12/12] blk-mq: Enable support for runtime power management Date: Thu, 9 Aug 2018 12:41:49 -0700 Message-Id: <20180809194149.15285-13-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180809194149.15285-1-bart.vanassche@wdc.com> References: <20180809194149.15285-1-bart.vanassche@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [174.62.111.89] X-ClientProxiedBy: MWHPR2201CA0066.namprd22.prod.outlook.com (2603:10b6:301:5e::19) To MWHPR04MB1198.namprd04.prod.outlook.com (2603:10b6:300:71::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f54f702b-f5f8-4aac-293f-08d5fe303434 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:MWHPR04MB1198; X-Microsoft-Exchange-Diagnostics: 1;MWHPR04MB1198;3:fihPxSOfqk6OPEYm0MvzZOVGVf3IzwY76nOV/7xuqI51M03is1q0SaRaZ9QHUbw6skAzeVH7tsTa/qUzLTXQUq2oOhLaksSoHG05IEMY0RRwGVHqhpVl0EM3+JPgicugAlbLy7S6RwRheb/glyja0SrBw2+a4gJsCfNDt2g/V0bIVw2Y3u9PbReRFjUO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RJcB+K6tVm/R0mk/9xXmWuTYfqFVzSMRkjE0/tX6T1L3kvB5GcbXxuB740zWwxKjo2fenX7B8kazCiWyUpH+c0zGiWj0d5ESwFNgItPvCoIx8rU/vYlU1XSqRb1B+lrKtyxgJouS6jqK2vTmv3Dk7gwFSpummrsBr5O48fNd11KVZ19TIJkDt+M9c8;4:A70Av22mJrvy+CoXBeOPdNHIjL/UTYGCGT5Hx2pN3UUC/RD3QYpGeSm6x3lsLiEoLjRiHs65R06wT+sXO6gP8IHb5XavSOelV56FTsizrxa8t5T7X00Kq4vRjldKeEN1JDEcxrsIK0xoOAz0xuvf0PX4VQaHN6s1ALgud3CMzKX+89L8OYUTn0blyfiIsPEVyV0TlmthHsIlSeYoEMLlFy2yF7Lf1OB5+voi++bMxbcKbWIPYZQEqYFkJrLeVGQ+m23Di3wQznZrEwvIbrz6nQwmMugYEL+sZkNZ66TAhzL34mlAelv8hpxMcslzDNtoe899TurT9ABes/yDOTcKhyJUoUvF5mglii4PIOq3myY= X-Microsoft-Antispam-PRVS: <MWHPR04MB1198879D781ABF1ADFD50C1D98250@MWHPR04MB1198.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(35762410373642)(146099531331640); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:MWHPR04MB1198;BCL:0;PCL:0;RULEID:;SRVR:MWHPR04MB1198; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(136003)(366004)(346002)(376002)(199004)(189003)(76176011)(50466002)(476003)(51416003)(4326008)(478600001)(52116002)(6486002)(105586002)(72206003)(48376002)(5660300001)(47776003)(305945005)(2616005)(956004)(7736002)(6916009)(6666003)(486006)(8936002)(2906002)(68736007)(36756003)(66066001)(186003)(446003)(81166006)(50226002)(8676002)(81156014)(316002)(6506007)(386003)(106356001)(97736004)(25786009)(11346002)(16586007)(54906003)(14444005)(6116002)(1076002)(3846002)(86362001)(26005)(16526019)(53936002)(6512007);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR04MB1198;H:asus.hsd1.ca.comcast.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;MWHPR04MB1198;23:TfT3rhA/Eo7F/M8wUZ+kcUYY99gIM80P3offlG/wuytAepDpD4eKMNVYInqQsHipMJwtTHHVps45G5fv5OjYh/GI3/n2w9c5CDvYk83ImMM/Z6lXqXjYWq9njobrYWyAqp3hxIBQnHoX/Z2Dl/niCxMeLB0ijQPptOFFvLcnmFXB8OFOFPQwKCYYw2esRibW8oWHkFpZ1arldklnYSsw1W/spcr6Cv+knktcbmjX4ZN/SVLXJqF0z9ADgzCQhVOVHgfyYD4gq5XqWuNxqW00dBa7XI4DQ5W6rpr70hcI/GWebt6XGyN0tTVqHJ4n86lR7iiq39EsAR0n09eFG1gTQ0jrCN2VN6SbK+cIEUseUgVnC+Cf0a/XBfB0Wj1Ks3u77gpMjYR9Oyk9v0IIbWCIITlkrO42FudQi2c/PnquNAz4QgfaaBOHlUz/Z5mXtbFP16m6yGuGUVdJYSGCR+ODg2AC+G/tGZtH39padLXDH26t7O5DZL1uWgJNlv3Lthq/kO466RG918AFV21UI9+voY1REw0/Wk8YU4YOla81f7COdoSS5g5r24MXhmE/zWMaFvMtRG0wOcmbVJGsA0my61razblcdV3uGFPrYiv/k5r8nYL+6zRbY4O/10PUL+dz4C/5kfNDpiwHU8XLN/2CRW7I/dlYzGfP9ZYpikPbhDxvMoxsODguZmX/6KWT6mbKdFPJkvnHyikRbKXJszszBglnuL+Y9Nwp/lMPdGd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Bu8016zWkydUEE1LNLwXLhTztFXdXIcwXu8oE3YwZMbkR98OnmkzKho5omiUGH36J1CenyiX1Sz9e8r9Db2HYoNGltlYdK75USoQCDW0UH1QtLsyguyF9AGd7p1B3X+WpCN19gejbQ2/woFQcfLlMXPFKQY2YahcxG7kpFIbDjNBnJMPQTZ5IUmgx/zbqx2AWfShk1gydTtMeU+1p42sQm9Wq8EkRNY9FGaVZrxQbqOaibq41Tue3IL0W1ae92ewXD0q/Bbl9U1Wb5IhWT2bWtkv9Dao+3HRJrQYtptlHWkQ/rr2cQ31L8NZY42w1rI3Ju0MvMQ==;5:T8sVctdY3E4O4xSpbPlqzBCQneHjEsIQXwm95iv7wNTFBp6fwGaA+ikpwnA19u4w8r8g2o6yklW4+Bn5rk1b+nTHMbVE1JCYmruCAmKZHH4gAywgiVBM1kse750ngxwMIVQwl34RXEAhjzCq/8Mw44p88uflc8vQGztM4HzYixQ=;7:b/foXiQXTf7QGH/xarRVWZq/j2U/BG/ubB+JupH8O4g5T09y1ctCRZEqxNueiZT8TZ7PKj2aseh2HfhF/FxgKqanOYyK5RtLeTRM62J9ahsGawo8DNpkaRX3Dn/lKr0ztmif84Jf4ZH7fb58Twcyq0bUIgpMJD5xSX9Wwnf5vi3+cSRTxLt1lwYHAgFmR19reKHWyj2HNeGQnxEpq9L617BUVuWzLiZqIohEZJ90H7ytF9kGBVSrVkDnM4dgiAOM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR04MB1198;20:a38tRx4yzKrPh1Y5jy/7wx7IihKAOXmzwsHV0ku2PFbST4V2WbhAwhBhIpClyhAq9jYzMchrSBrUXnpPMrTNcAS3FCih0AP8F0DwO6cHBtV8lTneSkGn3axxRzKuAL/A14x0zeyYXf/PqahX1AXgkeiTxWwjFxee1MYPkqKSRXw= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 19:42:12.6879 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f54f702b-f5f8-4aac-293f-08d5fe303434 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1198 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
blk-mq: Implement runtime power management
|
expand
|
diff --git a/block/blk-pm.c b/block/blk-pm.c index 977beffdccd2..e76d85dcdd67 100644 --- a/block/blk-pm.c +++ b/block/blk-pm.c @@ -30,12 +30,6 @@ */ void blk_pm_runtime_init(struct request_queue *q, struct device *dev) { - /* Don't enable runtime PM for blk-mq until it is ready */ - if (q->mq_ops) { - pm_runtime_disable(dev); - return; - } - q->dev = dev; q->rpm_status = RPM_ACTIVE; pm_runtime_set_autosuspend_delay(q->dev, -1);
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 <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Jianchao Wang <jianchao.w.wang@oracle.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Cc: Alan Stern <stern@rowland.harvard.edu> --- block/blk-pm.c | 6 ------ 1 file changed, 6 deletions(-)