Message ID | 20170418231037.3968-4-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 1B81B601C2 for <patchwork-linux-block@patchwork.kernel.org>; Tue, 18 Apr 2017 23:10:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D74927D4D for <patchwork-linux-block@patchwork.kernel.org>; Tue, 18 Apr 2017 23:10:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 022B32839C; Tue, 18 Apr 2017 23:10:55 +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 52EFE27D4D for <patchwork-linux-block@patchwork.kernel.org>; Tue, 18 Apr 2017 23:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932795AbdDRXKy (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Tue, 18 Apr 2017 19:10:54 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:19826 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757759AbdDRXKw (ORCPT <rfc822;linux-block@vger.kernel.org>); Tue, 18 Apr 2017 19:10:52 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="12095417" Received: from mail-sn1nam01lp0112.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.112]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:10:49 +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=vT0Q8ZL2BSwbW0Dfdsny/ojTHBJ80/bRMwFXEoOUhwA=; b=OizdaeL6BashtNT9ukV9UN2o5dR7nnKW2QMyqJYjwQKKPNZQ3O8L7Rq4XIX7F8ODPV2k9ZsHyspXw4sLNFRu0Lctl+g2gt2rpJCwwydkOClKxIw26US0/kJ2kPpAumeMsMowcGCjcV1VmwiWbEeSBqUB4k3gjuZgQZoyYLHpXnk= Received: from CY4PR04CA0025.namprd04.prod.outlook.com (10.172.133.11) by BL2PR04MB836.namprd04.prod.outlook.com (10.242.196.26) 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 SN1NAM04FT026.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::205) by CY4PR04CA0025.outlook.office365.com (2603:10b6:903:c6::11) 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.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 SN1NAM04FT026.mail.protection.outlook.com (10.152.88.110) 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 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 ED.E2.29323.3FC96F85; Tue, 18 Apr 2017 16:10:43 -0700 (PDT) Received: from milsmgip12.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; Tue, 18 Apr 2017 16:10:41 -0700 X-AuditID: 0ac94369-548749800000728b-27-58f69cf3b866 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 7A.14.18148.0FC96F85; Tue, 18 Apr 2017 16:10:41 -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>, Christoph Hellwig <hch@lst.de>, =?UTF-8?q?Matias=20Bj=C3=B8rling?= <m@bjorling.me>, Adam Manzanares <adam.manzanares@wdc.com> Subject: [PATCH 3/5] lightnvm: Use blk_init_request_from_bio() instead of open-coding it Date: Tue, 18 Apr 2017 16:10:35 -0700 Message-ID: <20170418231037.3968-4-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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsXCddJ5ke7nOd8iDB5ekbVYfbefzWLl6qNM FntvaVs8/x3jwOLRcayb0ePy2VKP3Tcb2Dw+b5ILYInisklJzcksSy3St0vgyni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zOJsveT83E2M kFCN2sF4faL5IUYmDk6pBsaKPfPV/7AfvCt2YfbjFuMJtY3Lr9hpf/n705ltXcCXC1KGnxs6 Da4edPy67Pd6i49RPFM3nb758YmJwJpVOStMv17U21RQraX1NGwpc4dYe+fcTpUrlxZtkOJ4 r7t2rfINHY6dwb8/ugXtivpRduvHwvc19ywsJ2y9eb2TY9+M2uiAm0kPtI9fVGIpzkg01GIu Kk4EAPZF7CgFAgAA 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)(39410400002)(39400400002)(39450400003)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(1076002)(50226002)(8676002)(81166006)(6666003)(6916009)(8936002)(2950100002)(106466001)(33646002)(356003)(23676002)(47776003)(5820100001)(36756003)(2870700001)(50466002)(53936002)(77096006)(110136004)(54906002)(189998001)(2906002)(305945005)(5660300001)(38730400002)(76176999)(50986999)(86362001)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR04MB836; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT026; 1:kcaV7DjVUSe2ZmyxV+NKHt594FW+/KaqDSmw4j0Tex/34qtN+srDVQuSb2KJh7F6mWD3ngWhU/0ukAAYbdaFH3eUhnJgyi+JtFucukRcyGWHTaXNrq7c2dm3ZWZwEJTeiVGdTDDO/KDqny7DCp93SiaOJuQFc30ydE0PYHCURsiPJNUW6KXFZs0sGgENgY8STJ19ul66ZYrA1H+eNN4kwajuX3vS14Itv82EV0sbAvz8bCbYiPhgERrdP5ehbJ1b5Tz98FJonB9PBXd/jwpfabriqzaeE+sEaUxOCNBkknoGDv0ER5mcD3HAhwqxvyZMzyPDDVAzyJly4o1lSPIS1KUPsVbQER8gmubvso8+04eljwG0RaZ/eazt0vD30ZCiqCRHQkoBwAm/SFPuHxRVHbuyMHv8yahRJUW7KrDvmaArChlh5zUGb/WKnxJ7LPXOP76eXocnGylXfIBqZlpPwK4ddTvPxtg4hw5jC4LuH5fptEYRqn+vk7hhN1mQ/DRE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 70fd8760-0144-49dc-dcd1-08d486b024d9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BL2PR04MB836; X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB836; 3:FL4c/yV31Z31/29doqReSEsef/odVNM+nu+AWUEVPtzUul55o756Q0PBeaY1n5CMoA1i4gDoz4/LyrbX3+A1dOIjeL2lGhi/EsJYYK9jTXTh1gFGerVJTK3mquABQRYPAL7DbTpaux4UD/Ag3slk45yl9SlV9kQ8ugUXlH6fXPUJIY8yv/SIuNh1/8bMXpkwnPWTW2sFcwLvwWYmOrW7/1qGseqweoNuhoN0ob56ZHmkjuNyZSh8ZC/5onetlE5twiCrwh6BaXBjdZ5PFrNOdPU5gVKZnAZeG/w1Rqs6Uul+IOzSNdKpr9tQrYMPl0Jh7uYqJnSs7DhIVAAIbfzdVKl4fLnwXdORzHBapXxECo47Zcvgx61o2+Mgq7z74yv9M3ygSQl61ZQiXULSQ4mSqt4ImKHyBD44XT5MSCgspQqELflK7B3XhjrCIaRyfUJZJ+0rn4qYVDqiDxoRhIzOCCK4JiA9OkE0d+czKao+wzin9sCP3udZhNOtQCi7EY4D X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB836; 25:v4s/NY/eUR8M+LmZwposudi1Xs0AcR4rY6kleVdbXv/3AWpfRu6W39744idZ7UEXXDaIYaW4zgZvSuDZIYjvz11rpq1TS+NC9g4LK9TYCzymgUaghMRLik15tKBLhs3CDEDRWQnfN9SwUlF0MfWInKR5j9w7wLeZ7nmMOw5QodVDo2vOiA/F+JHaWj1LXKjEBWdX0bVrx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wtjS7wgdwSHvoRzTbzZt2GFWi5Xh4Gj9bz0dW2ehYr8yL8zJoc0 X-Microsoft-Antispam-PRVS: <BL2PR04MB8361515AE0C75B20BB18C8B81190@BL2PR04MB836.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)(13016025)(13018025)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BL2PR04MB836; BCL:0; PCL:0; RULEID:; SRVR:BL2PR04MB836; X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB836; 4:yANhp9iMnOI3BJnq2tS5ntKIm3LhE8gbBkSSvZrrpT8yU+Y4/gIFkUtCEAk2shBtG4K/1lwabNmCAmYIehZYNiwcLH3aAZnfIsCqYpFllHjlvQWfnFQOP1DnLk2Eo2fmC1n02gzyhrzaQxR5W92lxMT2O4n0uYNuC0MUkHX1FzR5XlwN//1ID2svoDxy7D1CGy9qLed2q7z98X68Z21U+eP6ou5Mb0AvGsCiP+FA/ax7vWUShbiB+eiX7UZ46ZrR/uyRltLJNswRpEEaYxnK9VA1sqZJxGeGLtIwldoA4TLwQ9MY2ct4s9VdfbgljTuqdLznSoCu8cAwqrDZQrbqWmn/Yqr2QJv2aFuRAMbK7erqHPTTqyYUfD3IO3+pwMWFPlCR37a0eGiRmyTOD10J/tP7jTJFrN81M1ZZvGMMHgPebW7m/M2XTkrMrVIQ/2Apeim5xSGUFRX737fZxDFDbR6EF3Q3f8TfEo51VBT53gpuh5eoJNPul3mfBpJBE6E8FD+CTo8YcGUHJa+7/FwOv2RnS1fceBKPODZpWaEEuKDqHsXTfSTLottalFurRJ7ZemnffwFMwYKpIUKuGLbuJrVrrGQqcuEt/89gyBcWr7CnJyljWmFy9Sq7K4ave5Qg6aXVTbW4gpZrqv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9INeMxs6kzy5gwcZ7RwQlntJ2gMgxnbLKn9mPF4xguhKXrfvc4W/Sq3fSUQjHFkd7zsJ8uUcZU+VBvjdrxx6bLutbB2HNV5vg8axDqgRaypaJmGorldyUHVShiZx27VT+ZBJbHXLUTWafO4tlpdUwQ+cqk18no0mw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:10:45.2956 (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: BL2PR04MB836 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 |
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 4b78090518e1..b76e2e36fef4 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -511,11 +511,7 @@ static int nvme_nvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd) rq->cmd_flags &= ~REQ_FAILFAST_DRIVER; if (bio) { - rq->ioprio = bio_prio(bio); - rq->__data_len = bio->bi_iter.bi_size; - rq->bio = rq->biotail = bio; - if (bio_has_data(bio)) - rq->nr_phys_segments = bio_phys_segments(q, bio); + blk_init_request_from_bio(rq, bio); } else { rq->ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, IOPRIO_NORM); rq->__data_len = 0;
This patch changes the behavior of the lightnvm driver as follows: * REQ_FAILFAST_MASK is set for read-ahead requests. * If no I/O priority has been set in the bio, the I/O priority is copied from the I/O context. * The rq_disk member is initialized if bio->bi_bdev != NULL. * The bio sector offset is copied into req->__sector instead of retaining the value -1 set by blk_mq_alloc_request(). * req->errors is initialized to zero. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Matias Bjørling <m@bjorling.me> Cc: Adam Manzanares <adam.manzanares@wdc.com> --- drivers/nvme/host/lightnvm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)