From patchwork Tue Apr 12 20:39:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 8815451 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A6FAB9F39A for ; Tue, 12 Apr 2016 20:55:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C24232035D for ; Tue, 12 Apr 2016 20:55:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 63AEA20374 for ; Tue, 12 Apr 2016 20:55:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933665AbcDLUzR (ORCPT ); Tue, 12 Apr 2016 16:55:17 -0400 Received: from mail-bl2on0085.outbound.protection.outlook.com ([65.55.169.85]:2221 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933667AbcDLUzK (ORCPT ); Tue, 12 Apr 2016 16:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=44FvUyKnZVDq1gIluDgHJXiOy6PD6j3QbWG2CTwtS4s=; b=gDpvsIdmwW8zRkw8GnS2Crq/AeuyqR4bYC6AcPLWaOatUVAPUEi2SMcJkSmz5n9WXIsEvlpcW9GEAdvRvr/7kaIsfXRkRlnqYKLdllllp08EKrEtqN1+EW9aY4VK5IzKFhPx2/mA4NZJ4h3sk6c/GKC2ZMbesBdXpybSvsVcgc8= Received: from BY2PR02CA0094.namprd02.prod.outlook.com (10.242.32.52) by CY1PR0201MB1866.namprd02.prod.outlook.com (10.163.56.12) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 12 Apr 2016 20:40:03 +0000 Received: from BN1BFFO11FD015.protection.gbl (2a01:111:f400:7c10::1:180) by BY2PR02CA0094.outlook.office365.com (2a01:111:e400:2c2a::52) with Microsoft SMTP Server (TLS) id 15.1.453.26 via Frontend Transport; Tue, 12 Apr 2016 20:40:02 +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 BN1BFFO11FD015.mail.protection.outlook.com (10.58.144.78) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Tue, 12 Apr 2016 20:40:01 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id FF.B1.03047.2EC5D075; Tue, 12 Apr 2016 13:38:58 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.279.2; Tue, 12 Apr 2016 13:39:59 -0700 X-AuditID: ac160c69-5f3ff70000000be7-2d-570d5ce2af3e Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5D.5F.02566.F1D5D075; Tue, 12 Apr 2016 13:39:59 -0700 (PDT) Subject: [PATCH v3 3/5] brd: Split bio if needed To: Jens Axboe References: <570D5CC1.1030507@sandisk.com> CC: Christoph Hellwig , Jan Kara , Mike Snitzer , "Martin K. Petersen" , Dmitry Monakhov , "Darrick J. Wong" , Sagi Grimberg , "linux-block@vger.kernel.org" From: Bart Van Assche Message-ID: <570D5D1F.5090909@sandisk.com> Date: Tue, 12 Apr 2016 13:39:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <570D5CC1.1030507@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsWyRoxnke6jGN5wgyPHDCz+7znGZnH3/XZW ixMzPS1Wrj7KZDF7ejOTxd5b2hbLj/9jslj3+j2LRdvGr4wOnB4Tm9+xe5y/t5HFY/fNBjaP SYc/M3l8fHqLxeP9vqtsHmcWHGH3+LxJLoAjissmJTUnsyy1SN8ugSvjzKutLAVH2Suabq5h aWBcyNbFyMkhIWAi0TN3HUsXIxeHkMBcJomD179BOTsYJW417mKGqTp//QcTRGIpo8SLaQ9Z QBLCAgYSX/6tA7NFBGQlvu9+DTZWSEBLYuu7XWCTmAXOMkmcaL7MBJJgEzCS+PZ+JlgDL1DR jNn7wTawCKhKHD61G6xZVCBC4lDje6gaQYmTM58A2RwcnALaEtPmyYCYzAKaEut36YNUMAvI S2x/O4cZZJWEwFNWiY3vzzJD3KAucXLJfKYJjMKzkEyahdA+C0n7AkbmVYxiuZk5xbnpqQWG pnrFiXkpmcXZesn5uZsYIfGVuYPx7hPvQ4wCHIxKPLwPnHnChVgTy4orcw8xSnAwK4nw/ozm DRfiTUmsrEotyo8vKs1JLT7EKM3BoiTO63bvS5iQQHpiSWp2ampBahFMlomDU6qBUd96spHh g7A7vHG7tdhePBISj413zfBNyJk9I+VVMb9f6lH2H6fSPh2rnn77NXObo9GLhRXKKX4dPzsO BPmlPj+UNiF4Ys/eh5O3fNbb+dTps7+bhobfBj6pT8zVNw9Zz/s7/0ld7xpjvdb+n6f2cnrV TZ+1Yi/XvvzN/i+zN3SZz+NSP7msWYmlOCPRUIu5qDgRAOgngCWrAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42Lh2siRoisfyxtu8H2GqcX/PcfYLO6+385q cWKmp8XK1UeZLGZPb2ay2HtL22L58X9MFutev2exaNv4ldGB02Ni8zt2j/P3NrJ47L7ZwOYx 6fBnJo+PT2+xeLzfd5XN48yCI+wenzfJBXBEcdmkpOZklqUW6dslcGWcebWVpeAoe0XTzTUs DYwL2boYOTkkBEwkzl//wQRiCwksZpToOMwDYgsLGEh8+beOBcQWEZCV+L77NRtEjZbE1ne7 gOJcHMwCF5kk3s/eAlbEJmAk8e39TDCbF6hoxuz9zCA2i4CqxOFTu8GaRQUiJA41voeqEZQ4 OfMJkM3BwSmgLTFtngxImFlAXeLPvEvMELa8xPa3c5gnMPLNQtIxC0nZLCRlCxiZVzGK5Wbm FOemZxYYGuoVJ+alZBZn6yXn525iBIc4Z+QOxqcTzQ8xMnFwSjUwlr58Fr1NltM0oLHnX9Ls o+nOcidvRCgk2085eEOm6b/+o7QX54xP5OR1XGF89Dbrfvd3xr8fuLK69qXdmVyVsuxjaVUA y47dNi6Pn5YKXC5qKsrUmiHVkrrjhWW8weVNsXkdS1f1M3ypCTn2ReWBo/TmLmZuQ+t5QgYz npfPEmr8qdD7Vq1HiaU4I9FQi7moOBEAQO++6SECAAA= X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(189998001)(77096005)(2950100001)(110136002)(50466002)(2906002)(2270400002)(23676002)(229853001)(86362001)(5003600100002)(4326007)(92566002)(1220700001)(47776003)(65956001)(1096002)(80316001)(19580395003)(19580405001)(36756003)(5008740100001)(106466001)(53416004)(586003)(87936001)(83506001)(54356999)(33656002)(11100500001)(230700001)(6806005)(76176999)(65816999)(81166005)(87266999)(50986999)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1866; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD015; 1:XpXYq2akVfYIduzxwO+JFfLnZuupsfeRBWbLsrbyCAv8MSrBZ6el+74jkz6jETHuO+H8mVI8L6zyNHw9NzaNvk7mu4plv+pZ9PUsDD1q5C3jCEnLfz/MDnP3chUc/PFKyz4eLU7ezaZ1Biqb/MFJARjpSuGrAA7scvXCkQ49lCwjRHcf9XtIyG6jgrLawyRul6gQbAz1eQY0FNWmljl1+5umVj4XAuRzMwwfBJVgG5tqmEJuN1VOPpx8dpi45/PaaAK2NEdb1oIkqn+GJGeK001tZZy/PhZJ4mbjLE09J+dobigymA/tV5ibZduoQbC3DrmfWAX3G6D5sH+oOVc7ujGMPHOEVIXlaV2rvv3bommuPGpB8c0a0pPhIfYwvFNbRPFXs0CGqldWVUdNp8OGR7TNktjdreCTlo909kOBaOYCHGcb1iSrryrigkOk2kKAE2CzjzUM8544er1qZpRbyOI4WCfHiCwExc+xzj87+1E= X-MS-Office365-Filtering-Correlation-Id: 4d7eb573-361c-44e2-2ee5-08d363129f81 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1866; 2:yxd7ioMpaaLboWNd7k1CW0bfSa3J5oSS/vCTzfFchvaMsH7minngc4m2RUjktszTgDk4HCLHsM/W5Jwh4avN7n2T5tJBvYbLnWHL+XWSV3G0gDXIjEGt7I0INQ8xdNFJSuB1f9T2jJkLdluZTxhl8qe+G8AHfF0+FcqFhjjbTfz4X2Uf2CkN9LEIankhiFij; 3:N8Dx25yZO6MZygrH8LqAoa7/oFuOEyeExgWeDeFm8yWMT3ZNu3Qv1yYrCq+Iv1RJWH6p7GsCJSG7ZSnmIYUrMpfVuJVinnCIIuThmMWIzoegfN0iFh+7sEktLxYYsLTMdNCy+goLGbrDShzzT5PnW1K0D+EbNwUF+d2NO9c68azZ01ErRBU3SoyEsDTITVXkMpe/XqgOVvds+x2vBN35IIsfhXgH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NP6TKApu+hv31lyGZh+P5UImSDMCBSjnEC9nbHZNbNEpt+oOVZSqjsExhqwR/jyipwBhCyNsMYsGdKqO/4kHM2PAeDSV+jOjWvI3fnU4mg2OoP7JQsjSuMwB507e4Lb6VcdqtQqpv6P2za9YdMoJYQ4NXsD4nV3jf6hcluSWi3LkrRrkt+PiUxfOp5DYxeR8vf40lCKI+E+jh2d+3GU+lBZti3NEfeWGiHBpJW4NR+Z2MTnPzT8AkfmVmv4xeyxzK49TfVbv2bc6G+j990pAmTJEgQES/TA7Zs6An0K5SUgyODyr374BVONwDDXB1SjexpBoy+3Y/9x+0o2dDIE/YIJwRHR20DVheJ8H; 4:1HwbExoiiE80817XuZaIWfVaXLyX7FBWq7LbsTPQ+eNhopXEat7880bMEwkvR9KQK0VzJykDkVwtl4US+4ppTLGKEPyMFS0PAumjFJPoZpABsHA3u9UUqexDQdkM0qIiB5MwBcu+GPY6lOv8XvIpK7T32wxLiA8H+o2/EsPmgNc8wNW7qBRAdJ+zYo/om3095ddlml3aEq3sk0w4B8NinWLC5VfziZwlZcEoTAJpsbEKfdLZ39sR3017P2HWViQC1mFlHE1Ozu6rockvcxo+YI9vc9rx7giFdPrny056rS1jCtkX9mMfNLOKEoQQ8ZNmQOpyYTd7C535AuNNypdolvg0xrvpSC6refFIa4m83/1Sg6E4WV0NLTlg4JLYAfIV8AS4Wu+QbR4SinE7ZZPmVA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13016025)(8121501046)(10201501046)(3002001); SRVR:CY1PR0201MB1866; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB1866; X-Forefront-PRVS: 0910AAF391 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyMDFNQjE4NjY7MjM6R0piMmV6K3ZpSlJ2dEVJY2taQzkxbnhz?= =?utf-8?B?M2xVUE9rR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ItmxSK5XEk9sLdpW86IazcI5S+aSBnloLBuzsOiaNHcPQWhWbrhzTvvzf2SM1aQ6J5XmEOPFfh5MjNQN5stv2mBjrQa/SinjHiBCWYiKjKNoPrXjMpOWlvx4Fota8JPqKgc35R9tMgllTeK3Apl+irkDOav/1NPcDdtSGDrYNlaKHy0TbjZNl SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2016 20:40:01.7396 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB1866 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If a bio is submitted to the brd driver that does not satisfy the requirements of this driver, split the bio. Signed-off-by: Bart Van Assche Cc: Jan Kara Cc: Christoph Hellwig Cc: Mike Snitzer Cc: Martin K. Petersen Cc: Dmitry Monakhov Reviewed-by: Hannes Reinecke --- drivers/block/brd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 51a071e..91eb844 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -339,6 +339,8 @@ static blk_qc_t brd_make_request(struct request_queue *q, struct bio *bio) if (bio_end_sector(bio) > get_capacity(bdev->bd_disk)) goto io_error; + blk_queue_split(q, &bio, q->bio_split); + if (unlikely(bio->bi_rw & REQ_DISCARD)) { if (sector & ((PAGE_SIZE >> SECTOR_SHIFT) - 1) || bio->bi_iter.bi_size & ~PAGE_MASK)