From patchwork Tue Apr 18 23:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9686635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 266A6601C2 for ; Tue, 18 Apr 2017 23:11:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17DE727D4D for ; Tue, 18 Apr 2017 23:11:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CC0A2839C; Tue, 18 Apr 2017 23:11:01 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 88BC727D4D for ; Tue, 18 Apr 2017 23:11:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757930AbdDRXLA (ORCPT ); Tue, 18 Apr 2017 19:11:00 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:1801 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757759AbdDRXKz (ORCPT ); Tue, 18 Apr 2017 19:10:55 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="107949987" Received: from mail-cys01nam02lp0049.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.49]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:19:54 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nlGgkDp3aE+NHiLteSJnByPmoffznquORbx2J6iPoQI=; b=fLsgQHgo/xjWla6jB2UnG86avbz4D2u1TpQ15TnsGqJps1L4rJ+M4PcJAiJ0dcRJ22zutD4gBNbOxRR/F929AQgHTJtFbnXBy8AES2YyJSFKsHf0IK7GDh/+GWpwaHL4s1aomdt8fWEfenzL0HxWobb/uoc+uz2L3w13cjsT9K4= Received: from CY1PR04CA0040.namprd04.prod.outlook.com (10.166.187.50) by BN3PR04MB2225.namprd04.prod.outlook.com (10.166.75.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 18 Apr 2017 23:10:48 +0000 Received: from SN1NAM04FT043.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::201) by CY1PR04CA0040.outlook.office365.com (2a01:111:e400:c5a5::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via Frontend Transport; Tue, 18 Apr 2017 23:10:46 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by SN1NAM04FT043.mail.protection.outlook.com (10.152.89.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14 via Frontend Transport; Tue, 18 Apr 2017 23:10:46 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 73.3F.19026.4FC96F85; Tue, 18 Apr 2017 16:10:44 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 18 Apr 2017 16:10:41 -0700 X-AuditID: 0ac94371-41ba798000004a52-f0-58f69cf429dc Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 0B.14.18148.1FC96F85; Tue, 18 Apr 2017 16:10:41 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Christoph Hellwig , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 4/5] block: Inline blk_rq_set_prio() Date: Tue, 18 Apr 2017 16:10:36 -0700 Message-ID: <20170418231037.3968-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170418231037.3968-1-bart.vanassche@sandisk.com> References: <20170418231037.3968-1-bart.vanassche@sandisk.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNLMWRmVeSWpSXmKPExsXCddJ5ke6XOd8iDF4flrFYfbefzWLl6qNM FntvaVs8/x3jwOLRcayb0ePy2VKP3Tcb2Dw+b5ILYInisklJzcksSy3St0vgypjy5hlbwWmB ilXb/7M1ML7m7WLk5JAQMJG4d28LexcjF4eQwFImifcnJkM52xglnly9xwxTtb9hFwuILSSw kVHi9GdOEJtNwEji2/uZYHERAQWJnt8r2UCamQWWM0qc/XofLCEM1Lxi4glGEJtFQFViyZEN QDYHB6+AncSX1boQ8+Ulzm7ZCbaLU8BeYu2flUwQu+wkOs/NAIvzCghKnJz5BGwks4CmROv2 3+wQtrxE89bZzCB7JQS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 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39400400002)(39860400002)(39450400003)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(5660300001)(50466002)(305945005)(189998001)(36756003)(81166006)(106466001)(33646002)(2870700001)(2950100002)(76176999)(8676002)(50986999)(23676002)(8936002)(6666003)(6916009)(77096006)(54906002)(5820100001)(1076002)(4326008)(110136004)(38730400002)(47776003)(53936002)(356003)(86362001)(50226002)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR04MB2225; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT043; 1:Q0jaaYyLDNvoGv02RZBU4WgXN1RLeXEasy7xMRmrAcLu8TgkN2YTuVghnJGf3h1GAPokF2+n920fssTT4KcokNbXYYNTWhgA5SYj7fi7ZH6PyDMax1MU7I70ecWPuMQFHb9shSRIiAbH/Gkd5u15nRblk2DEaX0axt/gYhz1rsUM/HBIguTcvLXuV6NI/grMQiVtWUKz2719KkDGL4egt9va5Vp6UVEBVySiX22RDaBLC+bFoMpTuW2zMiiIrgM7OKuGWpaiPZVlLbuD4ux2bRNlb9G7yqrr6g4e2O2kdz4U2IcSNUK8PTAZhF0ewuMRpAUMFI4UZRBUzi1DQ+U1+6r+/pwBK16jT+1KoK3uD3PYzRtclcK8fOnoOupf4RQGMoswVJHm22jvbSi9DAAm9AYnEbn3sHm0AIOYcY9xGBHx7FSbOvw0y1iFbXxioF2Kn/0tMTIPNxUVKQ17o46VpnzEtzgwQWirQdXUZcsgIz/xqIadBqSy6xgdBUZnOrCsES25AHXazzJ/MjCH1syj9DfuNeqtbJvGw5X3XrnT4tc= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d904889-e075-450c-eb12-08d486b02563 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR04MB2225; X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2225; 3:comnV2siMWTogKylUn0W/+wdxVzof8pzOR8dpVLIaR6v0C4GAD8dN+jOzy/P8jeIwo+/zJ19FIPknFFt52TMQCoV63vHSOCgNn18CLTy3vsqLq8PNA+lFENNolQCPHcPlulsFBzoVbmomYq+s/r3ETZIqqWKWSQqKMExmtvLDU0yxJIHTX3Lc5aaGeoO/0aKtQT/LRGOC2CKDEAAo48RBMMs5ErC1vwpvEIXWCi+ATJXG3gdyrnPBxmcHbmlDJaHZ2CQRei4DmM9fNlY4ryxLMlrmN35zL3eBc1Asko7+4bZWv3YLW+uOZwdF+4SAjJySWg7Q5K6Z8ZAzs04BVggVOHh34oVNwEnTjKzhwR4QsWw9Z8bjaU6UN0yUTsCSvYktgyad59o4319NMXulSE0O4Yr9W4RCsLXymYUk4lwacve90X9UEF2GuRUrctCXDQD2cJWVKqZuUHTZcfqCSSLdIfnkGXYVocujAv8doQJtg1GpYQVyNem9uCmxJr3Pi1u2TVWVlMSWR5Y/7L8XbGIAg== X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2225; 25:fdx2uvuORSrsNAH3xuz5bpocXf17mGC4eCMV/lOnG40UoyUMWAT9T4BrRdLZXhhzh5VUVFMSK1b/FvU33pwNzZnmnp2h3dZ4XBjww7n6mWfqHjQSh5oUQaon8DspU92mUaFC/sa5t7BO0egURMAR/sD72sXyF6qPgf0y1HE0DRFLkAeQ26dvTYUCcBG114xcsCOAq5ZGDOO2/L/V32WrYxxQqZsdBolrRrSHksYjfYnpa8N9M3xzjx7WzewfuqdLGaPaja57OUpcYZi+MPd1W0r8i1fX5/GXxEoFy20yKkNVqk0aE/s8dHEhTVGxXUvKFUyFvj89IXUjDaaCRuJMZ8zGU8pF4D7uAEYoNzXNjlYILGE66gX4aL8tNUuthE0IW9HKGarVSTnLl9P/gfY6TLuNvuyGC9ksCMW/+FbyYUq8Sveev8EY9dmrJJfPpqB/vCg9mBoUv8PX1Zjp9u3WjQ==; 31:n+Pp9LC3DhTlr0Mxi0jONFyGkFGGtYrvTLJ7upCU10gzXBvko0k7TEx7CKSf1H3crXyeE7+E8sQEI528C/ynD+zoVUMHHcN6eYTmSdejFbe01QitGx/3LIJcM0noQQCtrhZEp0yQ5BTNAXbd7/fEWebsG9O/GZ3GjfV0ruYh8ZiQv1Kd+vdmhE2iE7hAE0HrNNfUkQ7/O5ysDHQZKpWTXIq0C/UMY1MqLnK1DLz44BTgGACJht7jyKLQ5QhuiBYfcj6ZHZKKuuVKi9VddEXRZA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2225; 20:31DsWUXLiJNLPvfgsFlqv4032ubxMF/PMbSh/bNcwW3I+6ExYJZFlayg9OJW4yxmpKdaqfWGHcBw8qqNx/+aWyFAbUBFLNS8gsPll7zjr+VXe+Toe7qYiXRlsFUZqHu+0CTBsEumyLE1MU0VU28K2OKIrWryp496CkQV0Gk2KtHyDMxWlnKpLSJzMjZxTfSyG4G9n/yfibfs1nzEiI6pwp/d0qkOPz1oJuLA8ysSOcCaLfKWfjnAHplNk6u1Y9vri5z6EqSEmtlWGu0pIUKdTB53Jn4au7O7+/H7UfdBWVKwA2/bBF2Gl1JhwPTaKQCDlUotF1rrDLnRdBDusAfnTz241AJTRTPd6wjG2SoR/fMU3VeQtax6//BBdXktv5zhcFh6mLpZgPMyxd5wxlqRthdzIsWkyLfbkVsUbXx2pWsDfWO6fSFpR3PEK1OgjqncbplMJgK1Yedi+USuqLLlt2FqHHywt5VFPqlpe0EMFq7CnTvY68I4GE3353A52G9/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BN3PR04MB2225; BCL:0; PCL:0; RULEID:; SRVR:BN3PR04MB2225; X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2225; 4:M1lhM1MEzrzuGC2IEpBKk6K2rXshZ4N/sSR6AQPOgp/nMY1mYZfYqJIoNtdzV4sVYAYbeLxYiHmdmf9wYxVCsh4WiuOmfQPrHtNTYZDLs8Ce1T490okjZmzKjwSnXWCen7M+VQGIeSN1Vi/Kqzew5ZEzZDqUb5LOQQEyUEppvQEjrNnok9k7J/719McOuxAgu7zXwX7xtXUio3+G3b7QvEwhnpfWfIxS+FF964nYpDAMfbHwy6vo+ZLIXzDIsNQI7evWRpZ5CId/8JJfV3x2UjVXT7FDnAFsIzkr2PiFgYZeErkwVWM1htJn1/TAJJlarHPWMgrtI/g+b7CZL+7wAydgNyAUDhO0GNsMERxynyo0OCfvjELe1G6LXfGkJI5AOnIGYKKJo/K7UFPjUqGB321EU3JOgqDXLKiCI6QWVZY5h+oMK7EtkH1yyNrQ99UonG8kHQgE3euaD5l78r55gKLXQQqY05OCvE7CfsDo4gcO/4IvA2kuDJw43gp7Vd2Lemd8aw+gXf5z1CnYgvaGlkGv+YriSYXr12VYueA2s23iT7/6Mf1vTKgAWSfnnttkSwVrlcMTrwXrmWrdFS09s28OMpPOQovHwJkMCEX6m2Yud9oJFKAzkkWuxHFJsJg5lCQK4eZMtqECFD3VdLKcLFR1eDWMAEqlnM6oRvrPGC4YBUV08fvFWnLZ/xuM5OrpU1CbDPLeDFkZYB4lpY95ifHXcJMno9Et/IZbUBLvAy3q98lS41I8baqZwlFhj47rB0BgtNVbd0SPozAIL/JjVBEHbr8ELyXsIW/zr6drEbbzf/ufiF2rcvBZc2qz/RLe X-Forefront-PRVS: 028166BF91 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjN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eJ0WMwiNPoCzgwWxxR+aXLihFlOs=; 5:sEQIYL24W6L6z+/TYIxuDjcNDTKgOkCUyUyPdWa+F4nNY7IL7xq1GnjAx7H+Bfj0AQWBGGwgyiL+uszvSO7BynK/GXKEd9XqT1vYA1t1wkM7m7CoRk4TfYd6IKFrlD3YSBQ39sMJIY4QqVhtU/TZNw==; 24:7O3Ezcrc9NnV6Nvot8xzCj+iKvjs97hIevM4VVpzxc7XTmvqCdLCRzKDlaHKv3T1O3lkhg0nlV0DaLV6wH40r/ceaWr4jYcHHEzqghC8OaM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2225; 7:/PQfenOo9PpyHfLLMSoUTCPcO5eb35SoS9SDKaZqdWnPnFUY0TnbDHCzbx22uSSFV99br0vWElh+aADTzjXAEUPqVLdIcFEXNJM605Y1ZzTHlpMl2K52doroNdIP9oGSC/EKvHzBVefBQCAmiMCikrYt2X45pdWs7XdcbGDJKv79QftZ/2pHfiiLiXxePaP5t1eCfhSW09cZmrIWt7M4osxMKUfD8QKH2yABrUi0dB7LSSAre7eH70os6ip5NTT2VEKoS/KQoX43FPjABb7nwUgh3AbCyohlu4wu9MsgUoIYuGyC+9f9Kbgd5FPF0EalLViQfVb2zj/pxFebXSWDDg==; 20:l2ORBE1fTmUdDSTyIPDzF3Z2YUQ+FymDkpzYLs2ZVROO0ZsQhImKUq62ShJ7g1UiP/SO/w5F1VPYC/UUEnmoyyZWLhN8rIFjQrP8E6lguRWeg1+LAcPMHFFeiKkpJhvy9hR/mh+xx85FNaOqx5TQ8chCZMoNY1EEg3qsQqI3Mv0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:10:46.1847 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR04MB2225 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since only a single caller remains, inline blk_rq_set_prio(). Initialize req->ioprio even if no I/O priority has been set in the bio nor in the I/O context. Signed-off-by: Bart Van Assche Reviewed-by: Adam Manzanares Tested-by: Adam Manzanares Cc: Christoph Hellwig Cc: Matias Bjørling Reviewed-by: Christoph Hellwig --- block/blk-core.c | 7 ++++--- include/linux/blkdev.h | 14 -------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index c274aed2ca3f..7374b02370fa 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1635,14 +1635,15 @@ unsigned int blk_plug_queued_count(struct request_queue *q) void blk_init_request_from_bio(struct request *req, struct bio *bio) { + struct io_context *ioc = rq_ioc(bio); + if (bio->bi_opf & REQ_RAHEAD) req->cmd_flags |= REQ_FAILFAST_MASK; req->errors = 0; req->__sector = bio->bi_iter.bi_sector; - blk_rq_set_prio(req, rq_ioc(bio)); - if (ioprio_valid(bio_prio(bio))) - req->ioprio = bio_prio(bio); + req->ioprio = ioprio_valid(bio_prio(bio)) ? bio_prio(bio) : ioc ? + ioc->ioprio : IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0); blk_rq_bio_prep(req->q, req, bio); } EXPORT_SYMBOL(blk_init_request_from_bio); diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e1ea875ec048..28f713803871 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1088,20 +1088,6 @@ static inline unsigned int blk_rq_count_bios(struct request *rq) } /* - * blk_rq_set_prio - associate a request with prio from ioc - * @rq: request of interest - * @ioc: target iocontext - * - * Assocate request prio with ioc prio so request based drivers - * can leverage priority information. - */ -static inline void blk_rq_set_prio(struct request *rq, struct io_context *ioc) -{ - if (ioc) - rq->ioprio = ioc->ioprio; -} - -/* * Request issue related functions. */ extern struct request *blk_peek_request(struct request_queue *q);