From patchwork Wed Apr 19 21:01:24 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: 9688941 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 7A52E602DC for ; Wed, 19 Apr 2017 21:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68CC128437 for ; Wed, 19 Apr 2017 21:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A17328445; Wed, 19 Apr 2017 21:01:43 +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 8F54628437 for ; Wed, 19 Apr 2017 21:01:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966179AbdDSVBl (ORCPT ); Wed, 19 Apr 2017 17:01:41 -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 S965641AbdDSVBj (ORCPT ); Wed, 19 Apr 2017 17:01:39 -0400 X-IronPort-AV: E=Sophos;i="5.37,222,1488816000"; d="scan'208";a="114138656" 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=Z+Wd9lGuYj6SXdIq8w8AULl8EH692KKJRqmz6Y+Cs/Y=; b=d7XOSS7RKs2RVW56aQZhTxRy/YdhLRNU2QqMwuLPcFjksEGuVinOgUlEjfk7kHRQEFPsTpRoLB3XyoN1RGZYYCtrusxVhzZ7qWhimzuEDqxfBBKZat3rM5W/9Dr1T1gJ1hv6rRUHbG5aUGtV1MHK9La59GQQdLRtHbreBHEON4s= 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:36 +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:36 +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:35 +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 17.62.29323.E20D7F85; Wed, 19 Apr 2017 14:01:34 -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-f9-58f7d02eb61d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id AE.3F.11415.B20D7F85; Wed, 19 Apr 2017 14:01:31 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Adam Manzanares Subject: [PATCH v2 1/5] block: Export blk_init_request_from_bio() Date: Wed, 19 Apr 2017 14:01:24 -0700 Message-ID: <20170419210128.28374-2-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 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsXCddJ5ka7ehe8RBn3bDC1W3+1ns9h7S9vi +e8YB2aPjmPdjB6Xz5Z6fN4kF8AcxWWTkpqTWZZapG+XwJXRdHwKc8FVyYpzj9YyNTBeFu1i 5OSQEDCROPJzPUsXIxeHkMBSJonrHZPZIZxtjBL3ev6ywlQ9W7ucCSKxmVHiwP3HTCAJNgEj iW/vZ7KA2CICChI9v1eygRQxC2xilFj+5SEjSEJYwFGibeIGsCIWAVWJg41bwGxeAXuJt4ce QW2Qlzi7ZScziM0p4CDx8eZNMFsIqKZ/ziQmiHpBiZMzn4D1MgtoSrRu/80OYctLNG+dzQyy WEJgE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essage: 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:HY807nbZZO/JD2WfvjpE71NTXrgOkJP9NEywi4H7xum0PX2b90Jpak/0YvVTAuwQcwNqU/PCEZ64SAJ8pfc6wVjAmzSqM2QiI+rBN/fSjs5FH/TN6pziODlMmYPCLfh6uG+UTikIAVv0QR2F9vHIBjRIFQc8o/a0+UU+GBnVaf5JwLMuTIX8srICULj1KbHrVUAiv/zyHI6yJYi2jZ3vnvzMfINm8Ln2CLGdwoi1ZCscb+hwBVlfyk//kHbvQh9Cb17jUwXnp1yXfrm3HdHT7bZUa5eMlVYmpNUV290MOf9VWAZgOPIG444TghC2gumh3LkgudeIlp0yNeRENyW+4Xj4RiAJ9zA+/sx8+Vd5OevKG3b011nAD8abT6DZqgad+p7pVoVRXPCPruXg/Ed3kDwOI/vLAYJID8skp4UNsxGKdMAZGNNZmFh9qBYfmyAEye5rOqZT0770vu0NEA3QDkwq8UnzHzkNcuWptxCzR+Q3mR239EgLu9BbF8V4FAVK X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 297c80c6-b4e0-4ec0-541f-08d4876743fa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR04MB2233; X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 3:ASd0MBFEFzjhmGuJHTdmEJ76Cv8o3Jcm6uPY61qD9NJ2mkLMsTOViqoHCjeiJG8wHBqRYqlqMncDLBIq60pp1dp1QrYKKGi4Iz/kpvlegfsUhx+Ez7EkIJAHpI1eMPnHK9J3ckSYRGSTSC5/MuB+AEZ+lfCW+Exh+gJ5Pjt6dMYFMES+iSdsu/pYr2h0ZVZUlfjYzptRlW1Do+kTQLSBZZhLpVK4BjPECPvdKshMnpdedznPVyVhEQtxGVgyA6whWIVEVCJZv9+efuu7h0qS6E5Ql1O43F1rToZ5ku6AMMVle9gw9OlJ9OPAkrLI0pHSUJIMRU6PzTX3emG7KnfyduPFRqCxkv0AY8WIwDkbnG1DWnesU3VZEwtNJEmWaKoqNbRV7Zr/i0J5JUoaTpd5QH20MazTcfO32UxCPm/DCVcr9I5LZJHZgfD8/AblhKPF8UnJqAhsFvwcPhOzIvnD6HkmeCTlUqot4KRD06z6Y/vpQNuJaS/EbSyTnbrLVGCO X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 25:hTKhz47J9evA1mz5Vce4bou9qO4/C/0A66yHlMVGXPOzGUPAQCLnof8udxllBFXeyPU5ZVSn7fzpu/OzKV+QkHNx/M+1Qcl9KbQK6xgYmV4QgP/kcm6FiTnSFot4ccXNairtyRRjw5HZWAXTtW5O59mj0PmRILosLurMzmzKnQOl9fohcT3SkcBMb219khCY8aXgTE+o1y9KlczWHEMTlZ/K3Hj66+OZsNvhXFLAgYW2ptkp6YPcETxVCFjd1/fq11nyDdim7W6B0NUYvgbypZRMJLy/rUiLv/nPfHnv5v8U0pEzlXnmj/9/HLrcR2DZkbl+g2ZHROET0awacMTS56iIikVS08Q5H/KSprgHybznU4XIyhZAxdNCAlpUdiBgIJ3wH3BZt9T4LGQ5bMbXixmEEgB6BOTTOuZ0LGCtbRdy7WABhXDY+XesZBzEO53yvj+Go64JStY2YVuza4aUBA==; 31:HAgHtw+keQhJVxu/nu+DOspLeWZpfrWlQbO68Itfu2H1dOFl38ntw9icqcU14X89RmdqX/Udo0tyoh1MqHKINGMe3hb+kD8KZYYmWcuTl9kOkOuWM1AtOzC6hfY4PVT1tXZZftwsVf/l4Eeno0/vd12iQF1VWsRU/XxYfjp+eGnO+Hs6XHdabgCClQUYr5uaUSicYQ+AnEcYc2M1G6iNATAFdaqMKp6btXXlsIu6kWsLLnHfhq23Pf8RTsJ0P0EoSOMpYkfFsr+GvosLO6/Mfl0oxDLQY1Zf0+d3c3Ds/lo= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 20:y+h/GBbg1vuEi8n31Ue/Uk7QMvcdyOIAnYwphzBrMBquHIdOAkAgCAL4BjxhAmfnajO83LpGCmQgfqbUSjBjneqknMHtss8KnfmiklGX/+JzoeNJ5Fg+JxbqZSx59daA21FVQoJ67n/ZZz9RaMQatP3q0mjeSr2t+mqjznZbE4nagsqTtHv8QSgtIvQ5xgvvGnxOMTpqfOTQ5jaCu05il4E4Uw59USU7Kpsv+k5ufzT3jOsN5qO4C7YBTFwbmZA1UeWOMckWksJ/NhKgFNIzMKlKesVMA3o8FLAriRCX2N6CXuejfmYY2YocGxB+EWmXx2/1ywBNvMWopPHLi/IsG9ogOx8nnW/4JbmqgTeObtXZ/lGqe0EKONNIHSkZjXSJwy466a+Cl64ykYhuEqoikVtSgYjPTOQSaDsn0hikm0GACBE9IV9WBuw8pfnmWXG2kQrNLwIxNeb1Jqx4HN0EsOGRV4sjAfK4s7Z4nfQQQexv2nFoBtFvabWb2raQdSya 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)(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:z3Em0n3izOHB0XB5vumU4gamYJIQswsluTfEBs5htRrZxF26A0BJhSJLLKCXZ92/mZygbZAYZdUcyhDhiUrIMu32XuoUaJ6pX5Q920stUASQWTBu07SP15BDooEc5vWJAeWDWlNQN974AM+czZtXWwCcBTBCVXoED9BiIo/hz1YwJQlQIpnb+R5NZUBh3AfR3hveIRdHLMgdPGRfW/HA/bdqeaJmlGelRbCEyLg96mRO1dbLMgUWsbhbRNWz/hrtM8qkIEIwzCyJUAXDMXyhhcHtaWfIRZBS9U4HTAuqvN+7rNXIubcaMkjfwQTgyUXNgo1t0fbU1OahTr36YK6gnto9VL6p64SLjEnPbVr4JvnCH3ixO3TVPMPaZ5324MRlwpIKO8qqF6MyLjqvUta6FxWJu3w66iudoo3PQtViM0PdUV6IRoxJIZ7ZKsMpLWwtiTmxjofMxz59HT3xyvwsTBOcWJQTK5T8f7tvkrniCWZzV/JUjTeA4bLFq+a5UlEJWdqOtcW/SH2LyqMYZeiUr71zYYXRJ64ue2Bf+D8XgjxWYel7v57rM094igbE4Rhb5I7+gGZhfpH1FJRingNJpBqdOkCf8whBDJKbW62lZbuy2g2bdjvPDr1D12NqEXWZvXh/24t1STac7yN5MUqcWBxpz6/S8+7/tyXNqqu9Chi0qy2U4IDBw1oOl35mGQjU0UiSL4R1sq0/wkZHhrZ/mbV7bTwSUr7yl5Y6/vpvx2jComYm9SlgmPFoMKRi27SVApCShUyfyF6HuCLlQYEZ9gElCiyLSig4r9sURJCNipy7AK+7XIKz6NbFYBcRRLCZ X-Forefront-PRVS: 028256169F X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjA0TUIyMjMzOzIzOkZMZkVkNXVncER2UkRNM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X2mVky6wdHZk2CcrRN6adW2oPRkaHcWsIbwTsB2lGxGD3OYNcp2qSXIPWmSHr+MYR+yNmwrHsRoWpfURRq08SipSuEPhNu/M7Bi+ZJaDnEICfnN5XshpeeevOpD2k=; 5:4184LjCET8t6HGhMLVyOKh5zK8oInvi3/2lx8VjRdgi+qnaybJMLofrUWdhd+SK9U83ETrMhJbBHme3g3Z6Q1+dVorvNVtmSVs+g44fb/vJU7Xz5udEnQVzY7PwqUoJQG/Kbc+wP+ByeGEV5IiOfcQ==; 24:MkKNnXURnGqnCiPbaAB4/Fol2dRIPL1iTzaNQ102Hnv3kOOe80dVzPl9SHtMIW7Pvacs/R1FZo+iGCf1X6n0OhovxwXRk0Zt1uKfhj8BnuM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2233; 7:Bzop4GtwnFGEmFWigYyynHji+lcVYciJ9cMCgsc9SnIuT9cY4bDpXFn+favvq2LKFNdVYIUcc7L0lL3SrmZrFAcycso5Cz+Pi5amWToti4B8xcUBpTHq8WlsMIZnNHm0LFK1a2dWY9e9CYNThYiolNPZ96LMICocdaCAdKob9/D5W2XPpjUrolwjgnTNwcd0sIBwuTKKUgrI4yMfsI+5lbJbAw+H30gf/WIW8atFBUWEdVZRTUzwnz8gE/F6rXvN414oR7jmZ5Awhrp6LXoadCb2QKrazurN2f0WzOhmPEOVmQv83Yyrh5BceTJJrpU50qtrljOAGvgCxfda7dRetg==; 20:IqOlRpgKePt7jtF/tjPEHaQCVgtVrqEqZ9MZpTdWaVZHsA9CARUjI8OMR0VbMGF1yEDOjuqC+o+P6lqYRbd3LgwsUAXjhwTNahU9sX5mDkmFerFJXR3uOvT1/J7OrItwLUaqWZdBpmdJzAzsmf4IffXcVETE4C7SnmVaaAGU+vw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 21:01:35.3255 (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: 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 Reviewed-by: Christoph Hellwig Cc: Matias Bjørling Cc: Adam Manzanares Reviewed-by: Johannes Thumshirn --- 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 8654aa0cef6d..ec2330113bea 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1628,7 +1628,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; @@ -1640,6 +1640,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_GPL(blk_init_request_from_bio); static blk_qc_t blk_queue_bio(struct request_queue *q, struct bio *bio) { @@ -1730,7 +1731,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 e2ef7b460924..c496692ecc5b 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1424,7 +1424,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 fe9c512cc6fa..be3abaee935e 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);