Message ID | 20170418231037.3968-3-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 D26C5601C2 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 C479727D4D 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 B911D2839C; Tue, 18 Apr 2017 23:10:56 +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 4C92D27D4D for <patchwork-linux-block@patchwork.kernel.org>; Tue, 18 Apr 2017 23:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757925AbdDRXKz (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Tue, 18 Apr 2017 19:10:55 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:55094 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755946AbdDRXKx (ORCPT <rfc822;linux-block@vger.kernel.org>); Tue, 18 Apr 2017 19:10:53 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="113890950" Received: from mail-bl2nam02lp0085.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.85]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:10:51 +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=yxFlrhLNreu8bBmuGttSwalAlSG76IGFa3M0eHYO710=; b=OSIQMu4sDkw/hkuwJbO9uIAtY1C4+BjrWPBg3hYWfhmmty8ZBISNluNp6wajRS0/cybBtAANGVQO4uo4osUgET4lh9ZH60ugTQadrOnsmr3rJ3s1Br/eLIeaD1X90Ix0InRivYHYfRBj+VEWRBEhvDZF5LNThS9rGkoWh8LMJu4= Received: from CY1PR04CA0013.namprd04.prod.outlook.com (10.166.187.23) by BN1PR04MB843.namprd04.prod.outlook.com (10.255.204.14) 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:49 +0000 Received: from CO1NAM04FT061.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by CY1PR04CA0013.outlook.office365.com (2a01:111:e400:c5a5::23) 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:48 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 CO1NAM04FT061.mail.protection.outlook.com (10.152.91.130) 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 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 5E.E2.29323.3FC96F85; Tue, 18 Apr 2017 16:10:43 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) 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:40 -0700 X-AuditID: 0ac94369-548749800000728b-29-58f69cf3d647 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 3A.14.18148.0FC96F85; Tue, 18 Apr 2017 16:10:40 -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 2/5] null_blk: Use blk_init_request_from_bio() instead of open-coding it Date: Tue, 18 Apr 2017 16:10:34 -0700 Message-ID: <20170418231037.3968-3-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+NgFnrNLMWRmVeSWpSXmKPExsXCddJ5ke7nOd8iDK6uM7dYfbefzWLl6qNM FntvaVs8/x3jwOLRcayb0ePy2VKP3Tcb2Dw+b5ILYInisklJzcksSy3St0vgyji/dgdjwWPO iotHpjI2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TzQ8xMnFwSjUwGh4Vf1Vettdxvu/Ba+vVTwtMFa21W9RyNvjQTGPPdyK6Mc0Pnjvn ROXdkk6XLeqdED/DVEVO/+53RcngBxe0xCKy1ge8XHGt25Pl4++784RXbW/U0tMN5FlfPPlS 0c8bbEInGVivl9l3R/SWT+F222WzbKfFqeI313hjfq16a/qwiqOLlTVLiaU4I9FQi7moOBEA zD8otQUCAAA= 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)(39860400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(110136004)(5660300001)(23676002)(54906002)(189998001)(38730400002)(2870700001)(47776003)(2906002)(76176999)(5820100001)(53936002)(50986999)(4326008)(77096006)(8936002)(2950100002)(50466002)(356003)(50226002)(6666003)(81166006)(305945005)(8676002)(86362001)(6916009)(1076002)(36756003)(33646002)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB843; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT061; 1:lDD2P+7ZzSCF0gIL1DKt6BYArSB68hqsC2D5nsbVJ9FgKSAxy8o1qjcdNZvrpuLzyqM9QnwZkAHTFA84EV3zvzwKbtC3rtR+g5RTUh2NhlxN+tR1yOeYXpq0MxShIdeLvx2W4Udf1/9AkYzGRx+noyD21JGpyooZzHur5w6Mx4XTxGmdNf4ccR30EmiOFUD6Z8+bsE99kzNJ1OQ3zgkE9zvaCezHA9Gq4G5EFqCaaiXxtzcm/3NGnNM1dz0zMiSrdgUsQ/61yqa42Or7Mf8fh1bWa8Njk3FEKM3yayPcPGBF953xCy5t0PnbNo5OgcNocnVpsZ869cDsyRhhhp1Om4MbkkPOWFF7EyalTKYXOhbo0CSA977VUffk1GiLxlcBD0bhS3udyol5t1aUmpEoNLCnKnIfaLKYDoL0Hc2ebUs5IU3fXHArIbJv3Sc98Xsw2OTQjEtAQjPoAOC8gjFe2UnMzPkCyGpPxFeM4fUjwKLjgDkXIcb0SdWIgI7ExeLtMJI4/QqI4c57Oymsatfbe28oCNrQncVxqCqKMJFqY9I= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf496f4e-2b14-430e-3008-08d486b0265f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN1PR04MB843; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB843; 3:LQTeU1ZBLXGdEOE5DePXGfjC5a4A76k0nA88Yg+UvyU0EFEYZP4c+xg9ak/QZiKhqHkbDppnCBQFwAWx0XEKQsB7fVyaS6f/oA93y+f06ZHSrP/+mwPLIJjHAZPnv5btogBpk6kUco1HyTAxnnlIh7H0cs1LgkTwQV/0JmyyD84htJVhpVVs0Tic7q9blgEtWhXZLIBsdGhR474Xihktn2NS2zNgufSn0Hgc3drmxYcs9/nZtkIpKyIqQjU7yiKpIzuvxd+8/vbjDQ8Ua0xi/BiJHqDuxXqwC/w6DR4NBu/kAxebbsDcQXre0oY6WwYPvy3e3O/qOnn6d4cwBVNMRVThGsUOL75bwVa2JdUEgiTYHtbC0b82BTPpqzAew13tP2WedpF9Z4K8WAKkAt1QNmBPx48qgBTZUSr0WfxWwg+D+RxPQE3DCs2yIS6Cm1TVrwadyPCD0dpE2uOb8UjarrqtDMJ8uL/YQv7AIJN9zAhqdhOTmLd/Fb8JzxzVSABs X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB843; 25:1ZxhIfq38yq04THYD9OANnI0D3VrK3EMrqzp2ad1Htz0zwVG5UF9jbW6ub8bO+jcbXkVyDQEuyEq2tOuITAUFilPHTXhLpB8xrQL1kpRQL7RijF+wvUSRBJNYPGoMSBUJnAM25Jgs1yC5+o2gSk7A3onlacaSbs8qQ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344Yq3zw9S7FvoiDNDImYKYLjCBoBcHjnRSE1Pexg1kOBC9nby+iaRg95LB4FMWyi9TNS8qRc X-Microsoft-Antispam-PRVS: <BN1PR04MB843E52BC8DB4E1EFC98D0B981190@BN1PR04MB843.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)(13018025)(13016025)(5005006)(8121501046)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:BN1PR04MB843; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB843; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB843; 4:o0KQPgKX1B5FE+pLT3yvZD4st69nxpve04a7EG+8N7JkbXoA3z5niyzycpYjDGP/zV0HyFQbQmrp8s91Qi+nk3ppYtgPyzFGGtx8khCriwF+bDYO0kg6UcyM44aVkoK+WChCwIlfnuq7WAemqbD93YI1n4NIk2gjHgDIoMttA5VcJwgpEVCjQslbjrhQkVBBwD7vXRH1aBFMkdwxPBtE0YqiwYbXihRIiX8hMNVRuUxjlk9r/jaf3htwB2h9ljXfjb4TeDzmhhXYR83iIiWeSvNrJLJbWSHlwNwGC0Dy5CFBkZfqv6StNDMvP8QjiKKJMIsFiTByXj68KzhT+xVzIgM0mz0AksvPpQqXTvW0pIUuqBciGXpExieFqYiAqM7fXEryrVmRmBCfF7g7y9xqtI4YJKQ3vAyf6TMyxXvAM/iRaisG0XVi+QoCzESzDtIlKrgvSs4Lhwxo0mleYMYSakvhh/ADFMJ1vUuj5EXaGyHSkmYJ/AseHE6SzyF1svqFfdYXvjMU+HQywbv32c0y2b27tO5Ffpw1W3r1UD8b1x+U9+QFKuNPj0LGqJPTg0goQI/Fjl5mnyucTHmFq9smVyhVoDwKIhksKEsALi8HKVtr5+WsMSDXFB4kfpdncPZM2oC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b+wGZPd0IasWlvYaiLEfAUOmcXY1iByvR442anexXywHV7op08fa4yCpbfckXZMi3WGTEXlLwlqCHWS3+v/b/SaOtHKzqHy26tobIe7Ycqi3mKpCisHqROpWp7Nxr9SGDSL0OTOaALgddHniCIEpzDdL0T+MWWvQ5zIPvvC/fZ3xky41/uP071fO4JDqXo97lnv8FhyjSU/ZhzShosMpYundpipCC5uK1Y96pYWzCIyw0KfHLd9KxEkGx89lOAaKmIl0hM749KYL2I5B2hnGEzvQpKOwyJLDorbiUsIZubXgOhD4=; 5:9Hr7U/7xLendSd3nm8zy0HoVYmTsUQzkvBKFPk5tk6jkSEtE2GAH8vGIKkmP9qS+SK1a2aJ50pxU7pRMExhKQlz3/RMoMSSjoBkjtr1LQAewa/L2g7xhZw0qPdM3utgqY3f7v4wxbZP26nYbbaqdYQ==; 24:/iEio2QGq70QYRY3GgwZS8BizjJaePPhVSPd26kMyY5Df8rsJ7dF3l8olPMRfokzTgKEwq5HwAsOFPxo4uHGAwYPZ9GzRbkSGq7TRBLVnyY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB843; 7:6QStqa5TXa/OFcK9d24cuFDquSwnsHtU9mk/gt9y/BjSbcLagvvHiqbrEgkSbEmNPCwqRPPYQjTBFJpNV7SOrEns/W51j6QT18dfkAiubPxpuIs7uV6wD1Jig8KkhOiUBv4hjMEcb5czsOtxXMOa6Ur8acoXqZHaMejQFeaEwQqLbdqxqKT0XEV2blVKldngqkZKhNlyBorCk4giQY2cfujaiy2McVGMtVAEGoCxGkdA03qNAlOLZV09I/yaePPRdF5ruzfUyrBK10lT2anrT9XqwcqQsfHMelAtb+Y1efc9aZjFD7XFJsQFChe4vFL50AEVUaGjlaY3oUBq1fWChw==; 20:Ryy8sbojyBjPyRPKM/BIz0Ib5emgu3n2zMeNRp9egXEtUSA278WYHwp5T4hBkUK6KCYsj38hQ4+dz8gppezucYZLKKwWl53xNisnOhOD7JaKhq+EhtxriDyTqdoOv13uj0lWK5pBfhUhCR7M2zcvUK4QkF0crACjfIr4xYzqwos= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:10:46.6595 (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: BN1PR04MB843 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 fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
Although I wonder why the nvme lighnvm support cares about
a NULL-bio the null_blk one does not?
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index f93906ff31e8..e79e3d24e229 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -443,14 +443,7 @@ static int null_lnvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd) if (IS_ERR(rq)) return -ENOMEM; - rq->__sector = bio->bi_iter.bi_sector; - rq->ioprio = bio_prio(bio); - - if (bio_has_data(bio)) - rq->nr_phys_segments = bio_phys_segments(q, bio); - - rq->__data_len = bio->bi_iter.bi_size; - rq->bio = rq->biotail = bio; + blk_init_request_from_bio(rq, bio); rq->end_io_data = rqd;
This patch changes the behavior of the null_blk driver for the LightNVM mode 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. * 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/block/null_blk.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)