Message ID | 20170419210128.28374-5-bart.vanassche@sandisk.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.web.codeaurora.org (Postfix) with ESMTP id 4C72D602DC for <patchwork-linux-block@patchwork.kernel.org>; Wed, 19 Apr 2017 21:01:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D78E28437 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 19 Apr 2017 21:01:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3244928445; Wed, 19 Apr 2017 21:01:46 +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 B241128437 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 19 Apr 2017 21:01:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966182AbdDSVBp (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 19 Apr 2017 17:01:45 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:35020 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966135AbdDSVBl (ORCPT <rfc822;linux-block@vger.kernel.org>); Wed, 19 Apr 2017 17:01:41 -0400 X-IronPort-AV: E=Sophos;i="5.37,222,1488816000"; d="scan'208";a="114138661" Received: from mail-dm3nam03lp0017.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.17]) by ob1.hgst.iphmx.com with ESMTP; 20 Apr 2017 05:01:38 +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=FRkEi5KX6lq3ULtiUEZXU3J6mnvmla1eL9u2iZ3LjEk=; b=n7w63mCIwil/no1rFrScJ7EMANeDxrtB54Naf65M9O04aUtKeMukQggx8HSexGMIYOC4rGABNs7XqqwVWy3+UYFZdFp/eW/WCVRM+2u+UJQ1yAJh+lIpOEJ8Q8NXuTRouuVmwgR3WiK1ijgtkIGCvbxgTfwxx/Lsnm3zV3wUgPY= Received: from DM2PR04CA040.namprd04.prod.outlook.com (10.141.154.158) by CY1PR04MB2233.namprd04.prod.outlook.com (10.167.8.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 21:01:37 +0000 Received: from BN3NAM04FT028.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::203) by DM2PR04CA040.outlook.office365.com (2a01:111:e400:243c::30) 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; Wed, 19 Apr 2017 21:01:37 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT028.mail.protection.outlook.com (10.152.92.178) 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; Wed, 19 Apr 2017 21:01:36 +0000 Received: from MILHUBIP03.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 77.62.29323.F20D7F85; Wed, 19 Apr 2017 14:01:35 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 19 Apr 2017 14:01:31 -0700 X-AuditID: 0ac94369-548749800000728b-fb-58f7d02f4bd5 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id CF.3F.11415.B20D7F85; Wed, 19 Apr 2017 14:01:31 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, =?UTF-8?q?Matias=20Bj=C3=B8rling?= <m@bjorling.me> Subject: [PATCH v2 4/5] block: Inline blk_rq_set_prio() Date: Wed, 19 Apr 2017 14:01:27 -0700 Message-ID: <20170419210128.28374-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170419210128.28374-1-bart.vanassche@sandisk.com> References: <20170419210128.28374-1-bart.vanassche@sandisk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsXCddJ5ka7+he8RBvdb+CxW3+1ns9h7S9vi +e8YB2aPjmPdjB6Xz5Z6fN4kF8AcxWWTkpqTWZZapG+XwJUx6UILW8FpgYrOD+fYGxif8nYx cnJICJhITDp1k72LkYtDSGApk8SLW/OYIJxtjBL3ev6ywlR97tvHBGIL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nfB4FVm93d UzPXn/muq/nscwqLfF500O4eceEO7ofNLbeyQjbyq8Y4XWGcadaWnKHO0OLZndAo1h+4unda XORUB7v//BVtYc8mLPA5P9ng+FMlluKMREMt5qLiRACNva8w8QEAAA== X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39410400002)(39400400002)(39840400002)(39860400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(8676002)(81166006)(575784001)(8936002)(86362001)(50226002)(4326008)(2870700001)(50986999)(356003)(1076002)(5660300001)(50466002)(77096006)(5820100001)(47776003)(36756003)(2906002)(110136004)(38730400002)(23676002)(2950100002)(6916009)(6666003)(54906002)(106466001)(189998001)(305945005)(76176999)(33646002)(53936002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR04MB2233; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT028; 1:/Jvz4vUnekzb0vqPY40w5dKdKYZWr4VGvQVByHDDj1kNodUXvQhuSr6QSc825UZ7G+9eNX6hD49FUT41434Z9ogzKOnc2HbTdHX7lyX7L8r4ya5nc11AdqV9ilmoTRx/Wku7OfeSnI75IWVM337HUXai0VATLzrjg5CyelFzp7SpC3fLGTxbURXCz/RmS/H9VrBrPsXbuyt9tS7DF2tJnNMyQEkKDbFOgr/y03C6M3r4y9tLDKUZUQgBo76YkvWiItiHawdwQOBDrDRYM07naJJr9EOk6JCZB0CK8tAsRijpbXACWwoewkgLBj9WfzZlViKz3zvdkwq/WURq0m0bw6J9dcsR3GfJ0p3JL3a19D1G1WMHOpD65Hy3frK7JpFWLIV4CuGzMzfb68O56LgS/mCtRgU2+MODVcvw/pQG42L/MuGcGvmMcDD5PLKEb2OhRYYVNV66aIIofQHKsb2pwHS+Gf6LcAZNsnQSHi7uQMv9FYBOjSm/w/8nxnZa0RA3 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b044c3f-a282-4ea5-e91a-08d4876744d0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR04MB2233; X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 3:KK+ezip299GggYYtp2yLBY0gZSHYvPCT4MccyngWxgHbMNIsqoHeES9ydJ0WAebKWBA/9EPUD1QujGiIMo/lvhDANxLCEbDyikt8WQgbcw0HTsmrSm0oMuaiacgKTyeLMDBuerctqOoE/t+tRiED7s/6txGSBAcPVPJElUxZiBVY2jKAiueEHHvJIo2li6NXk4lwUkd95ozZAv78uEgQeCu66cZ6FF/sWNd5qRM7Pkp44uUdIKHwsuXsi5QefutC8+fm6kIyHioVnzi2sT0TL+kq0rRBadk3dQ9hWsa4z4Mk4O1KWLgbP6skxosL9pr3VOYVdcPW3Y9o5C916rIQN7XtKYwqGDNYU4FYbPFTReinOn8smHpkB9F+18SNz5F4NcZlrDMHkugpunfdYsnRcEKr/C7uBP9Er/SOz2tuYv+azmfn07/BRBtJDg9yOk/7RDNJ45R9TJ6kmus1uy4xXUoEfVsNaW9IGFwz+ZewLN5Itjp1kReLmS3D0dw3H2QR X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 25:rZbkfLLtL4s10fZqI7otMGffnGONq/qIwUTvizTQiB6rKUEKTWNFX69BmamYLs91PBl5nVB6fHqvCTGb2gx74HOGNPNmRboePDtMmbjIl9NxebZkODw0iItfhwmODTbujVA+giTXhXfCiLrrIraB8vRpAso6ZXP3Sj2zpMtSOsDWI6ZZKBPiaaYSxHMixlcddDLkpGJQh6Eru62TPCuRLspyzQWwjKW7N0AUYf7MlfHET7smSWisAvsaRj9t+Gv2f0knivwYS1Nc8QWFTSaRUOtYp9YvWdpBhVSDMmcIVp6tht1lI8/HaYWx1FkOQt/MpwUjueLzLmgI684KSYKZrGIX23znMgEx4J7yl2F/JGqpRcgfV0l/t45YEofosV82nOpTsvW3Mqe9CRJDzR519pfzu5DN5xw39H5z520oP595xymB8FK4riEoo3l4qSjk74zC82ZWBI7dWqIW1YiCmw==; 31:cXEe4R5zMV35BXIS+4n2ykjEgGoQ5/NNnnteBGnWDhQwi7jG/rALv8Ti8ak6WZPc7WbFD00FXidLkODl35IBZNEEAeZBamqI54uP0ZpukJfHJ0jbZZdgGOAGhzLHWfkeMkek5mO+ZxM4gLSin0yFR+aUWaD5OdZfV04aEYPfVC3znKTqXb9jwakJ8GE1iKfbCkk5sQISs7naV8wR/CJMZDpOKleWtg23fKYrLhVO310mkv+fzUC0rj1eq2mmRR8FA1n5wVmGvJ08I4ifJ73WmpF08a715lxNv2vR9VBCxHE= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 20:kRIcGth3lo1lf/YnM/LpToXrsL29Obs0SaZ6qEbs7X2L67+6J4Zy+CPNFIjpvS4h9WCi+jgrS1tsVQST81Fs5LOhZ9Y7rGYZBbEqRyc68+2IL3UcUk5IrbxUQPD/SXBkI+z429nXEpmpp0JlebpbRen1V/0L89ia5yM7HEeSS7ATM3UXglcrcTDqo/kxGkoO0NCHEQmSVHK4DN3a00eayHCy+wrLMXq14JGmXparVTIUfVVqbLKtD5pmdNb1L8bGh0xdqVjbbhp53h38LiZVflUkGBPRL2641b3xx8xkpWJLzr3OEs1Zg+CiapxCHnbdPzaqIYt/OoMOhTYsjJMAQQIgB/JEMEQTLjC0wm/HksrT5b+HbOpGjEXEn65zQtL2QorM0X8j121pAQAXmajE+QCHVqYjQPuL9XQ5p1z643gFCZcUGcQXfHVG3y403H3uwxQX3IDxyNOOzmnta8EYi9qd4JG50Pz0ZkVbtZcbYmRUqxq+Iy8QzN2P8bVUGBSe X-Microsoft-Antispam-PRVS: <CY1PR04MB22335487B7D7F03AC4BC960281180@CY1PR04MB2233.namprd04.prod.outlook.com> 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)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:CY1PR04MB2233; BCL:0; PCL:0; RULEID:; SRVR:CY1PR04MB2233; X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 4:iACeWbSIbiaduXFWojGW7fwNIeAVVxHQv8bLadG0dEflU00677JY8GKhsBqmm6BpwxCoPA5u+5uZ3huL31hHULmJ37LwY5abtgRf1bfsvcBYzHtBe0lHhRQkX89bRZPbEMiRGIGTbpNYFomBu82P0gNNw57Zjy1+Zo7b4ggUZY/C2oxX+YHaZmd+631KrL4JHCNVbivrImTVryEeY4g1I//a9+xbTIwPPuzBC3x6UFAnlimVldcmAvJYfqkpEK3OIgwd1YuzaP+bSpZjGx80I6w5xrelEjv6QQaemVVtCJByTPjaKR+dVzZaBhRdi49vPd0qaId6bsUeP2gC0xTIO1c8gl+4K+lO2aGp8Ns3rPXl1iFrbpa4Y6V9DdqTj3t0NZhdnLXdwIsaItdOmTnBuTRNuo2v7elu05/xhj9UHtLEFzbacP8BmJ8a9nyn4RpDNd0Olnf2n4wxkEhqGzkhnVzZDM57waxaLCscCr9XqtiothfEARlB3QSAhnUCJNlndhg4cSHVPAwqgy9RTXVJpzj46iXuvKjUWKgFgU4mYnOQdgtNkCl06UJteAPcuAry8FFjn6iYBOcT3qfcQUQwxkyjwyLrmr/isjCjDW4043olQV3ovGYUukmU8fgybDUb7tyW3YqDa3swW/7djPH427dEOFWYwpTvqU5BUSb4t+Tyeb+it2yzMcskNMGZPQ6v7ElWYcbXwRkTBLG/dTWkbNkSLDqGUhTFRIssCQ5kWy9bvY2RHFuoaKnfS6zC8AN4pJuxqD469VZUF6D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z/RLKnuK5spFS9ZMyiiweEfOPOybJBMH7c1uw+EY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 21:01:36.8255 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR04MB2233 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 |
On Wed, Apr 19, 2017 at 02:01:27PM -0700, Bart Van Assche wrote: > 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 <bart.vanassche@sandisk.com> > Reviewed-by: Adam Manzanares <adam.manzanares@wdc.com> > Tested-by: Adam Manzanares <adam.manzanares@wdc.com> > Reviewed-by: Christoph Hellwig <hch@lst.de> > Cc: Matias Bjørling <m@bjorling.me> > --- Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
diff --git a/block/blk-core.c b/block/blk-core.c index ec2330113bea..4f0fd8f3328d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1630,14 +1630,19 @@ 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); + else if (ioc) + req->ioprio = ioc->ioprio; + else + req->ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0); blk_rq_bio_prep(req->q, req, bio); } EXPORT_SYMBOL_GPL(blk_init_request_from_bio); diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index be3abaee935e..92894995f4b7 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);