Message ID | 20170421035558.2657-5-damien.lemoal@wdc.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 225526037F for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 03:56:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15E8528334 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 03:56:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AD5E285E4; Fri, 21 Apr 2017 03:56: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 9625628334 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 03:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1035040AbdDUD44 (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Thu, 20 Apr 2017 23:56:56 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:24565 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034985AbdDUD41 (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 20 Apr 2017 23:56:27 -0400 X-IronPort-AV: E=Sophos;i="5.37,228,1488816000"; d="scan'208";a="114480078" Received: from mail-dm3nam03lp0024.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.24]) by ob1.hgst.iphmx.com with ESMTP; 21 Apr 2017 11:56:25 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/XkFbLZyR2SUw4VcSMvjbt3EoI5lW+pJQjbJwW99T/I=; b=L05Cqwo98zpD4VO934Dc0Qe71CvhIGvtij/+9sVlwOZYvTa3ryXv/X+tjBnffNPFqozpV6iJXMyj1OCI/KRURXseY+14/H+5tNRR/Wq1iI0X3CoSCytdE4brlVR3ADtmjQMm3IslR9e/dSCHOHeRaoqHqILeKqDAdBp8Nxl0CEs= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none; redhat.com; dmarc=none action=none header.from=wdc.com; Received: from washi.fujisawa.hgst.com (199.255.44.173) by SN1PR04MB1983.namprd04.prod.outlook.com (10.166.69.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 03:56:22 +0000 From: damien.lemoal@wdc.com To: dm-devel@redhat.com, Mike Snitzer <snitzer@redhat.com>, Alasdair Kergon <agk@redhat.com> Cc: Hannes Reinecke <hare@suse.de>, Christoph Hellwig <hch@lst.de>, Bart Van Assche <Bart.VanAssche@sandisk.com>, linux-block@vger.kernel.org, Damien Le Moal <damien.lemoal@wdc.com> Subject: [PATCH 04/10] dm: Fix REQ_OP_ZONE_RESET bio handling Date: Fri, 21 Apr 2017 12:55:52 +0900 Message-Id: <20170421035558.2657-5-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170421035558.2657-1-damien.lemoal@wdc.com> References: <20170421035558.2657-1-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.44.173] X-ClientProxiedBy: MWHPR10CA0052.namprd10.prod.outlook.com (10.169.238.14) To SN1PR04MB1983.namprd04.prod.outlook.com (10.166.69.143) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 516a1181-6638-402a-9c6c-08d4886a6122 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:SN1PR04MB1983; X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 3:B9AeJrO7ATpb33yHnyr/+BAwB0HIAL/6il5ruIuRlbxlmK++yGOhVve4pYvy0+dFJwFLbKFHXXe12kWCKBvsm5ZfV7PzLYszk13cuY+c04+ooM+E7qWeO9x7n92ReZz2AgQKnSBu1ajFJg7qvLSfkcZ+Ghe8VJrqiDT4SVBaYCu0BBcGyqZ0RLb2eXi15QGMcAtjBFsbkgvVcURzmLzPuPH7qcBNgTi3zmGKwbF8+4+n/6LU3r2yLz4VS7FaI4WjjMMUedViZxIZ3W/xrttRcXFSmbKluIQz6smrGPIKDC9Rp0jgkp3abVmLYpzvJwWEAUy+QD4h6MyW/Zi5rnbDIQxYdWJctT+iQEG4jNDrvRo=; 25:W4kWzpQLBQ/kkLnkRrYXSEv/9BuqRUKHgUlZlmV4/Ohxo8G+xZ64DaV9HtCBSyv7/3rWn0LEvCrhxio3VQi1LFr3SPsZEk8rxbVy7/6r4uSK4KLwlmjcKISvC8EIsWJAHUCvwj7sshoC+9NQ0ym19mn96enpDjpYU5Yqhlz2BJ7TFtz02eC6Zv/WwPLH+m+oB+GkIRPCho9EKZSxzDVyS4v2ar7w1VRGAqZqk89cHMFXj5IHcJdqAoWIxMayg0FpBdoiONWcsQVru7h6bg0jjdhP4C7UvFPvuPdffu6e8HzRN2AVstN8VGRVfQNfZkjzNCeGQwD5hbR8DEi9pG67jX9aCYmI4i8XCbMHS0szqwT+A5OgXAnxNaJWKQPvxcqbiLzzkjCaqjg9wacsGjPBNCfgLxgRr3osBIcVKFIr9n0vbOIxoX1kSi8UAwyBw46nay7sgSNK8pxAs4gEAlH84w== X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 31:C0g7ykE3YBrbcs5/cWvPxNSdhLMeNmDldBxODV29MDcn3ETl7lDEgeirNUzJ4sIT3xAbnTGvIVWkVlDqbRa5uKrSkC4xqjkSIsvUq+A8HPamqmpMwiyXpWNMW4qT8Gn3aU1psCoLRRGpMclLBI0ctX9ZFx8nWHCjzh+Uc/nPktxJaSPtjW5MsPiQboUIMmUQSaHEWGZkwJVNd25XxaFPBRQ6mDvx1fo21pAFMvv7I24=; 20:5QLcsy6vLuiStfkPZfTjy8j7mDT2zKpjw6SzRLBLiKCiINYq14evJs4T4jFX/ILeQvRI40Loi8rRi409BVeTrryPGiTOok0pa+9HaRJdh5Cpw9FwQ70PKe53o1OkLd5UirktJmUAdQOfT9ieD7isdGUXKlaEh4tJgjJ/gakqk2SD+zyOCc+icygV5NsaI1O1r3plx2+wOEyohvCtWHhmmApmI2FWeW6qwzRRa6iK53UlJybqJIRcTLV8eqRi66y6bw6Mn2cEqmozryriKQUQGHvVDh7ROYHHKZN0D0JZWEWevB6GFsHOkFd5TzfsoYoNiHyFJLsbVXTK44KkSsOB8tX0fpyARzJRKrvAatrAOUFv7SDHMKcMo9es8fu7vddfmHV97zlGSPnPQVtgxF+2CEruSfQQfBeTRtXAHHGGV+QAIBd7ay72P6Iw4PLEhIxo/BtVXmIWZQD7+20xdlb0OEBLcKMgPtb4CfujOeMSURuk2bnDX14s+rHaIWFN6VS/ WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Antispam-PRVS: <SN1PR04MB1983D621A09C7B8064A28C77E71A0@SN1PR04MB1983.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(6072148); SRVR:SN1PR04MB1983; BCL:0; PCL:0; RULEID:; SRVR:SN1PR04MB1983; X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 4:DnDWNEd8cS1IdO/yct4iDQ2dOPu+W7zdrNaYfUp7Nc0Wjv17Rq4T7BEMKTpq6eqyoJwNGfKV6p0lXPcZ2qZ2xiRNDn+KCeyfVrmGw/C4N59eCooLI3IoQVjko1kat7JutavLuZtYEMjm4EtyOP/g8Y/J+wExrpCgRhOkOkneMosx29lmNMLAg6jVPUssvRlkdvWddmr1HSIcslSi5N+kzFYwMdGCtHDHJFQbwVKlcZ4z5FmzJKv/wGj5OzfqFHvN2dyVqT8OqKlTUKYgI4GwInlvIY1Trp2AvjqEmU+5I0IRk/TPvexD4qpKYcYkrz9jb+YbnV5bMYdjslCu4kV84RIyfTbXcQQglGA/Tlj/FoKFSCcfYBB2NNdy46J8frHv3LvIr41CTd40+GAsuv1mW1WfFgTxp5fXBBqdJE3knLtKWW41hBZH/fkbecOYBjyiF+7nUOyzg9gjEumpmsbSlBgdZusWHENvGQxNT790OUQVskqm+lpbFn63d3TI8D1KBCxFL2aAWGiPnlsSAIrD1NV1HXelo4422k6zNNFQW4BLpnPJVnhk/AXGeCDeJ1JUwm+7H5+S3FBu10y0onTh/aX95akr3fVyZQ+HaU8iLXeZUKASBmLZ3e4dLXtNA3fGhKSP97A1pgI/VtoegcwJ1gPOeUWUggH7hkGx73t1Gz7BO8mHk0WNCHlJKbg52ppjeZb14O1cXL3osiRLeRkGOdGaFRFsbKCIrD9qqEve1oo= X-Forefront-PRVS: 02843AA9E0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39400400002)(39850400002)(39450400003)(39840400002)(39860400002)(39410400002)(8676002)(5003940100001)(50466002)(48376002)(3846002)(2906002)(38730400002)(6116002)(36756003)(86362001)(4326008)(50226002)(1076002)(6636002)(2950100002)(6666003)(6486002)(305945005)(6512007)(53936002)(47776003)(66066001)(50986999)(54906002)(189998001)(5660300001)(76176999)(85782001)(7736002)(9686003)(33646002)(25786009)(42186005)(85772001); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR04MB1983; H:washi.fujisawa.hgst.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR04MB1983; 23:TMxa9ECfodSa/NSxRkSfFZ/6vom+BBNePW6OmwoNQ?= =?us-ascii?Q?+NcTGpuhyj4aWsd7WcBeWpxO3YWUATjkdv+FTkwPLWyh9zUEH8nuaL/ytMY0?= =?us-ascii?Q?wzQLU+wDBQho9Kg0eVEgmF9ZkrzTpVn3abdbAbHYevIehbF57ZX4O6JCqCU6?= =?us-ascii?Q?nmu+NBofeR2FEiGtlkHdrIOE/MlHi9izOUYm3fqzQe5qIOLZpwOaYvs5KWAH?= =?us-ascii?Q?HGGPpKI/mJmJ4bhPg0+QS7B6u323m2uaBig3Fyd0VyWj9mcS3PVV3Z6YL7li?= =?us-ascii?Q?VKa24YXAas8iC0lifbb8cQQf4vkBrjaL0y41P4c9C8YjnKGY5JNVGb1g86ZN?= =?us-ascii?Q?BqoFbA/2IN7hA+zlIEzJo1XII3+TfTzS+jTgGLoe9fkWbtgbZk+VLTaaUacR?= =?us-ascii?Q?JBtXNxbpsdSDpa0DIULH8LhkXgEyio7Kxa8fvHOB0xUQ5FI4RzezusybMK+t?= =?us-ascii?Q?hucZ+zWgT3/LhPYwPu+mobMTZwc9Ew1zQDHhCC/Ri54r95I5wGwK5G9o4b1h?= =?us-ascii?Q?1yVeoT2qofqpB+DvQQue/4+gJSkyLA2yQS3SoKQ0zwya8F9Bcxbdg4aeINwW?= =?us-ascii?Q?b1qWgAbkmukxczvnONBAb9WKTboLfkIfjXoGLzco08JwaPokAdWOE3kmeidE?= =?us-ascii?Q?NUpXCAiOOmoStqdt/UTpbYC4Yc6w2MPysuMYVa8ZUSxXi0UzFtdzQlkC61VJ?= =?us-ascii?Q?5jlH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KrPIlLStB5qw8kjL9sO4Gjc/ZPt67qhqkeVCW+qr2uwNQYWNrgxd1OmJSJeXEvgAO6zlOVziVQzZeiIp3DFhx2yvqIr6/Qw/hiTlXUsxN63F9jayYkfL4EOKvvW5AMIfFyicJfI4Dhw==; 24:LyuWFIq2KX/nMVOQQWvtB402Myfm1jkaIujfHWTJgRA/XE2dcZF1GYNtiX2s20/SUK+EjhhlROI9rb3njCJiYLlAnyfTPNpbd59E6jWvr84= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 7:G7OrLoKzFwIRBAI9bp2Z3bcniyADWT3UWeUiIdk5P4abRrkcCtsyk93fY1MyJCHvub4ullsfV+MAL2gH9k/Yr1lXccvT4q+x5bSOWnmYlZ9YygtV8ID4p9W6MEI9CVJNyT6MiHgSxw8CfXWPJ40s5lFqhPAsqVKzexWudY5Vrbv1rz/J17z2ztEBEeIMG+3IP1yokXWjwQ8m1XIlpWnCWvAxMsp+8VQmyn+c9TGEB401PMu9AMMgdg28bccuJxnkTqEHeOnhGLNgzwma+ERdzzImBuolTqmDaRvpFBBNFCOx3h1NS0nczCw3vZylJFEJ57uTaAz1r9+ETJOZwVpc8w==; 20:7oX8Ny7+Kyq+5LUPsON7bZTVnN6YFJJymAQvimRKU+j7t7rssj5g5OAG5ST60gsJffAEjRgwWLHr0tGEHvFsf/2FLe0e0s6lFH1n4KuH4Byvt00kG5jrMgPBqrArZBybRyjGnZBdlN++CpsEGBNdfKim7DZUnWVa9CDvjBHaQa4= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 03:56:22.5286 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR04MB1983 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 |
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index dfb7597..1d98035 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1318,6 +1318,10 @@ static void __split_and_process_bio(struct mapped_device *md, ci.sector_count = 0; error = __send_empty_flush(&ci); /* dec_pending submits any data associated with flush */ + } else if (bio_op(bio) == REQ_OP_ZONE_RESET) { + ci.bio = bio; + ci.sector_count = 0; + error = __split_and_process_non_flush(&ci); } else { ci.bio = bio; ci.sector_count = bio_sectors(bio);