From patchwork Tue Apr 18 23:10:33 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: 9686631 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 C738E601C2 for ; Tue, 18 Apr 2017 23:10:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8C8027D4D for ; Tue, 18 Apr 2017 23:10:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD9C12839C; Tue, 18 Apr 2017 23:10:58 +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 28A3127D4D for ; Tue, 18 Apr 2017 23:10:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932806AbdDRXK5 (ORCPT ); Tue, 18 Apr 2017 19:10:57 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:52978 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757891AbdDRXKx (ORCPT ); Tue, 18 Apr 2017 19:10:53 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="12074413" Received: from mail-by2nam03lp0047.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.47]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:10:48 +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=UDHQBQQJsDXqPs3Zdb3X08D0QUcm+Jc6fqjlMZTSFG0=; b=RitxLRnoa1sq3v6gmHOXMqqS2E0eCUsooxzks9KW8oxEekhKEXthp8mya7DmocIyCkNZzl0bocsUxdGAbmlyDYxuZxubVvpcxmVOXWxUo924BlINgJQKXp+sUj6qLm9PWLP5k1JQYoUcjeVgTkhEP1yoexl4rP7QRFZQt56ynCw= Received: from CO2PR04CA0099.namprd04.prod.outlook.com (10.165.94.153) by BY2PR04MB846.namprd04.prod.outlook.com (10.242.38.155) 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:46 +0000 Received: from SN1NAM04FT014.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::208) by CO2PR04CA0099.outlook.office365.com (2603:10b6:104:6::25) 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; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 SN1NAM04FT014.mail.protection.outlook.com (10.152.88.112) 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:45 +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 03.3F.19026.3FC96F85; 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-ee-58f69cf3dceb Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 99.14.18148.0FC96F85; Tue, 18 Apr 2017 16:10:40 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Christoph Hellwig , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Adam Manzanares Subject: [PATCH 1/5] block: Export blk_init_request_from_bio() Date: Tue, 18 Apr 2017 16:10:33 -0700 Message-ID: <20170418231037.3968-2-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+NgFnrDLMWRmVeSWpSXmKPExsXCddJ5ke6XOd8iDB7cZ7JYfbefzWLl6qNM FntvaVs8/x3jwOLRcayb0ePy2VKP3Tcb2Dw+b5ILYInisklJzcksSy3St0vgyjh+fwV7wQnJ irVXj7A0MB4T7WLk5JAQMJF4vmUeSxcjF4eQwFImiZ5J8xghnG2MEk+u3mOGqXq2DqSKEyix kVHiRksWiM0mYCTx7f1MsLiIgIJEz++VbCDNzAJXGCU2rlnCDpIQFrCT+PJ7JpjNIqAqMX/2 YUYQmxcofuX1f0aIBfISZ7fsBFvGKWAvsfbPSiaIZXYSnedmMEPUC0qcnPkEbBmzgKZE6/bf 7BC2vETz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EAAIB RbsHAgAA X-EOPAttributedMessage: 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)(39450400003)(39410400002)(39400400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(36756003)(33646002)(54906002)(2870700001)(356003)(305945005)(106466001)(1076002)(77096006)(47776003)(5820100001)(575784001)(189998001)(2950100002)(86362001)(6916009)(2906002)(81166006)(6666003)(5660300001)(8936002)(50466002)(76176999)(110136004)(23676002)(50986999)(4326008)(53936002)(38730400002)(50226002)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB846; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT014; 1:HigqdMEug8TRJ7/G3NKGPqtXr4zZ+uK5CN4lVINEo3/21J3EshSGgNQj6xnnxFOqC4MfNcn/HEF21LZ+cngjPOH28Jm4XaRmpEmHwnmLCe3WaKYFE2ZFLQt3eizRVucmWaqqoytPe6OZA1HHftkDsYBDP0iTOVrOvKJCG0s5Jp+QJ0gP8ut717HtPnOYS5Sc/7RQUnTIGgle/0tAK6mqv5gmvJT5y/SN1aeL/GjRyg7KBPr5s/VmRM2nxFwAI1DFm3lzWcYsRXDec67w0yd89hhxCl2nP0yx7TkO1xsbaTiqruR/5ZGud4bQS02kml6x+uBXnMGy2SdYggIpiN6H6eMXu7bOR87UIdeci1Is+0/0FxSrZ/ETaO284VLiZXgpPXeDFI+2uJzyKk0f86ICUzd9uWLvMfbqXQIugD1zPuPoOqSz6aVGzY3N/GFCmK7d/gWkIatyEw6zBSBSHzm3woXiA14+KOgRKKLsOP9IV6um6jLkC55NCACrxNyiKQRvfmo3RF33EQ+34tgAN00EXzYuZpeUI07Vvgg1Vk0U0Rs= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b157ea7-f837-4396-7185-08d486b024ef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR04MB846; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB846; 3:caLMTlo+7ze3ktV/SVNSygphVS3WJCXLC1rDAe/MqoajKsREZ8Vuk12w47x+G13kpiDGgi75U8y1ZDVTkzruUK2A8PTFYH42JDctMrsODgJgpR6hBK6O3q2rdyXjrx0d147V71Y9X1K7kqAP3jVI5tZdPULQXlPVfJYP9O9sJkR+OpMuatJK021ZugAEFVKU9XokgE7LU7K0dYM1yMOIOdQOf7lEWFDg7DG+NFHTf6EfH93C+mXSMmUV/JrlnyZDI6fqeJ2qnLHCaw1+RzI4IPr9OdOHwvON2QiFkPAhFZzZRMImhNkdRlei/NzNExZKUamw9skRvspPLpZ8xwQP5j0Wz6/J1TGiBo7VG7jHrr/5jDB9ntBEKmGDCxtIkQoaShtldwWN4f1trP+1jPjSaqvOLC8gwzljMDwHodSFxWqwz+yS/z0OhAU6yEnrb1AT/OZMhiJfoWOdW2HlK5pJ0mVZUpHEwiYIJrB204nN8RJwGbgVMg6eoH9Qy4Tpci9BRJ3fZ93W4Ka9wfqVQu2svg== X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB846; 25:A19DHhsN3Za5YADqUbc2+A76MZjkPVrvJ95ZQQ/KXnXMZtK64P/8AyEBkDP61h12ymgsQwcczVlQwnu4z6TMm/UyfIH8RczBYnLeVhZ113bdJRx/BMQ5eKNpftvgpq5RF/oxy4K7ZC9yn8EjeEmY8ljMmXtP6tHQnQnVG/4h0iL6Fg4bD/fL/a1CHvR9J0/2Vc5Gno2v/GXxZdK3ws5e3mMp0mnuAuyvW8VLInhwerDnhXSggqnixW0579x9g1XW3WbTa/avoBWE3SzoctuRlxGL8rRE3h5ncyH+I5czGTtzJZic3VASXSoWjLXFeIzH7buEfWULLWjNj2jrZOv9xREt1cHLe2dnPPn05yK1LzWfGu+9iCuI8bAGPdr7VyFJkWusP25SUSEtKiYiDxzDR6p4A2GWGnBI3dqbmJeFkPRYdqb1usmTcfBDohP0aPgo4k+z0bYfHpvqHZymFHmzhQ==; 31:2dXCkjso8NKwt2zQNwAWoUq+0/QQ5siwtzkibAyaADTS5naTs0q36Cm9gw9wLzPwu3x5y0TTyi1CVnS6tefLkFdS6OEJRL8SYS8kgJpkjOu8ozgBVOhv9C6W7jGVz56FQM1VKLM4C43HJlluJrvicnfrXT2tLPexaafqZJDm0qHU+m3O2Ga0IjgsWXHTu1ybAPqDNMo34pLz1N4T3DVcPpRJKWmACI6fCTyc1a0yvYQorZ3EPw0lV0Kh2OnXBTeAaMDGqylJFpPLzVrF4hpSVw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB846; 20:Mk3j78rqfTNw2Fz2LN0Td1JjD3xlpMM9un3ag2BxUc7ghoPq5vNb8vvS4FuMm6gA1ZPresKNGyytqPyJQ+MkqmY9hQLHgE20EipWeJZRu4ZnP/xluQa6ChduUQ0QAYO7agWE1fuYYRSKZGJrLYepCn1qtSxX/VAk02FpekyGxVMVRWLMMXBGRYUJUfh21klnW6tL75zQ42S3BBEjtOhN+18Q2qQBbN5Q2UUjXcliAYgHAkCca8jNR2XzGwOABtJIc7pvRCp0h5xmZVw5paWpUqXcEk3WFHkFjWNExjRf1U9MoXtIS7gP1gMcCAEaJsipy7wS4kFn/8hQ6SuHnBpXBeUFjFMI7mGEOUvpIEuMhOBNhOdk9+wUfU+7IqG6QDZQbhI6BSSC+9kHLsRgwwjKbZU+LvaUhjIiiIjthGw87oKu4MXyWceWe0V6l+cm4jeHmgj/VtyCZ21hSP+t/Pw3hEg49BUj+n0wxZoFV5Q5qe9RH6uhWIMiEcYvqKLF3S2e 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)(13016025)(13018025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY2PR04MB846; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB846; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB846; 4:uFK9WeVeJBCXqJjuATsDrTz+0ZICqj+DOEp9v6JB4xWJbQgvtcfs3sD7tpPWTf1vhOFekEvZgAin361EyqkiccnbARLH6CfQzlpVteWcxpG/3r5VHHodxgiZU41vJkM7cO4LxU35dCoR+U0Plt1egNVVlgKK2DakVmicfo7AaYys+Fr5O28r3z33fgfr1PgQEYEWfOFgiRuBf8SyYB8vB0oyzbv5q/LOjuo4wCjz2Zq/ShrHIud65BjGD+hURpOdU5zzN/F/mdx/uL6bPaGGOZkLpOjN4quEONA+DdHeqhyQW6miDD5eGV7JcbPZCeoN1FmMS2n3axbnFE88Hm2sw1BVzTBP+i73BSfoE1RgDF4xP/4svbhc8YBN8BwJwgAqIhNV7sGX2mvZxQoB2OL4joO57vYUXUy/rRFbthf5xRTA9B9FH1BIvw70KGK+r7PXv9FYWk+pWPBtO9mXwcFtjTMAXa5e2U+sXNeYDENZ0u1gdajAVGeIzPYytRGmMbLhSmQkgjfTvHoN0lZta2oAv7mXVrjky6eVaMKF5PIbNvT6JXf0PAeJ84m6U26sawg6D7rm+gkBmbs2EYQFVBrHM/Q95mKgDC3NygMFx0CBhTqW3KZ8eYSBWVwdIVXTUard+97pvYs2Wf+Ro25C69zhcFKYIeAwYolSraEy/liwUVPiJuFw+v3zBGHR/ccREA465t8SFzAD5pCzbfP0VWrY9YtyOOauElKYSFPaEISDjd0NIByHi3qmDHlg3fM/oj1IGGhS9mXzIYhdxqbXpi46cJVJVuK5c7ysTP1QClwKTjG0cjWPDEoihBlXlerykxTB X-Forefront-PRVS: 028166BF91 X-Microsoft-Exchange-Diag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b4TFHM8+ACaqpCaIwVLI/WbiRIMTbw+KSxa1IXWVqwtocN/7sIRQYTGe9xbaANURSIRkQjc8euc4na6t7usMzjLL7BsE1BDPB0=; 5:dWGyZmRbWbDQS03Q9lIo+vaThxHcvnI1fvPTwUFZGFv8HcROfj5vRCCo5dxmY0XuoJp1ZgAXA0SgypOYz3a4sZw84hkti4Km6ptEPT31I+T+/kkd6daC/I1vKp6xWANFATQUAbzUbjVbylF131eCbg==; 24:uw5iyY8EPkRo/CPux+ZBvSbIEm9s8TexlWBW177F3AXCd6CBE9Q/4ezjwGZSa8Cm5hxKF/Bbb5Cr4xZyke7avPU8YmfKS++J8DHzx5FPUPo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB846; 7:rXJmZmXK4FV9NIzd1qESkY8aqh/XjEStiU4TMnOjd+VFmlsthC44mhvHGGoATG9VW5uZ/8g7dduaVZ4Ghz/oG65omAYDKqrOyJghtrIer2UWCPRv2LcQcwtal7Z6iMNoX0TgduNJat1J9uoGRX3+uq6iCfMD7sjR6YoHu+bh0IAgjqAPE6eLvpCBGq7BFu1Aep8l/sV7wN3Fd2V+TLr1kT6fJxYhOtPpYzn+qOiHSZUM8nzpc5oaV+XqPhd6JuxRJ6+hjq5gy0khE/LkWO6kke6fJ9ywnr8PxCK6BHveVLgsQPCOKNiD/5ojHcLkpgDbwRFsSO1eZ7KDMC52dgTesA==; 20:vdxZ+Fs9XDWZINpuiN90ZElsqoLFukR9oPdythPCZPox7NjngH77JvgsI1nwsg5Cdx4om9CvfuUUqztnLB/ePU8HW7dUinkKmPW+ho3hUnsH3lP5kfFD25JH5HX26QbleVngScfzYmhGhcGD/sqx0tzrlOTAvB7HOyuYf2Lee9g= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:10:45.4214 (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: BY2PR04MB846 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 Export this function such that it becomes available to block drivers. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Matias Bjørling Cc: Adam Manzanares Reviewed-by: Christoph Hellwig --- block/blk-core.c | 5 +++-- block/blk-mq.c | 2 +- block/blk.h | 1 - include/linux/blkdev.h | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index ab1ecf71cb27..c274aed2ca3f 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1633,7 +1633,7 @@ unsigned int blk_plug_queued_count(struct request_queue *q) return ret; } -void init_request_from_bio(struct request *req, struct bio *bio) +void blk_init_request_from_bio(struct request *req, struct bio *bio) { if (bio->bi_opf & REQ_RAHEAD) req->cmd_flags |= REQ_FAILFAST_MASK; @@ -1645,6 +1645,7 @@ void init_request_from_bio(struct request *req, struct bio *bio) req->ioprio = bio_prio(bio); blk_rq_bio_prep(req->q, req, bio); } +EXPORT_SYMBOL(blk_init_request_from_bio); static blk_qc_t blk_queue_bio(struct request_queue *q, struct bio *bio) { @@ -1735,7 +1736,7 @@ static blk_qc_t blk_queue_bio(struct request_queue *q, struct bio *bio) * We don't worry about that case for efficiency. It won't happen * often, and the elevators are able to handle it. */ - init_request_from_bio(req, bio); + blk_init_request_from_bio(req, bio); if (test_bit(QUEUE_FLAG_SAME_COMP, &q->queue_flags)) req->cpu = raw_smp_processor_id(); diff --git a/block/blk-mq.c b/block/blk-mq.c index 4d8368f657ac..a3a2e9c40453 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1410,7 +1410,7 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) static void blk_mq_bio_to_request(struct request *rq, struct bio *bio) { - init_request_from_bio(rq, bio); + blk_init_request_from_bio(rq, bio); blk_account_io_start(rq, true); } diff --git a/block/blk.h b/block/blk.h index 07d375183f31..cc8e61cdc229 100644 --- a/block/blk.h +++ b/block/blk.h @@ -60,7 +60,6 @@ void blk_free_flush_queue(struct blk_flush_queue *q); int blk_init_rl(struct request_list *rl, struct request_queue *q, gfp_t gfp_mask); void blk_exit_rl(struct request_list *rl); -void init_request_from_bio(struct request *req, struct bio *bio); void blk_rq_bio_prep(struct request_queue *q, struct request *rq, struct bio *bio); void blk_queue_bypass_start(struct request_queue *q); diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 7cadaa0cc0b9..e1ea875ec048 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -924,6 +924,7 @@ extern int blk_register_queue(struct gendisk *disk); extern void blk_unregister_queue(struct gendisk *disk); extern blk_qc_t generic_make_request(struct bio *bio); extern void blk_rq_init(struct request_queue *q, struct request *rq); +extern void blk_init_request_from_bio(struct request *req, struct bio *bio); extern void blk_put_request(struct request *); extern void __blk_put_request(struct request_queue *, struct request *); extern struct request *blk_get_request(struct request_queue *, int, gfp_t);