From patchwork Mon May 8 23:40:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9716917 X-Patchwork-Delegate: snitzer@redhat.com 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 D500F60365 for ; Tue, 9 May 2017 01:42:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5A9724B5B for ; Tue, 9 May 2017 01:42:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA5D52807E; Tue, 9 May 2017 01:42:24 +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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 84CA926E54 for ; Tue, 9 May 2017 01:42:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6384E369C4; Tue, 9 May 2017 01:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6384E369C4 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6384E369C4 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="MDDrRNqD" Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 427E218E3D; Tue, 9 May 2017 01:42:22 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E5EEE4E9BD; Tue, 9 May 2017 01:42:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v491gJjW022733 for ; Mon, 8 May 2017 21:42:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3E7ED784CD; Tue, 9 May 2017 01:42:19 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A83A1784CB; Tue, 9 May 2017 01:42:15 +0000 (UTC) Received: from esa4.hgst.iphmx.com (unknown [216.71.154.42]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F121C05678D; Tue, 9 May 2017 01:41:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7F121C05678D Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=Bart.VanAssche@sandisk.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7F121C05678D X-IronPort-AV: E=Sophos;i="5.38,311,1491235200"; d="scan'208";a="17165731" Received: from mail-cys01nam02lp0053.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.53]) by ob1.hgst.iphmx.com with ESMTP; 09 May 2017 07:41:04 +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=udnhLlNxv+21iYWT4P7CMSvkp7htZ7+4OnjIRDTKfLw=; b=MDDrRNqDETCa1Z3IJurPER6JxawXj3crR6B9Hm4en5gH30O7zOQReeG+AAPTYlLsFI7DElN/YD2a/FjC4Rk8s/iZktmBJGFKuZXM4Bgd8KxMiWQH8onHIGhNxOWqA171AKwZFAOQW+hWY3mdFNb2qtXj5PQOW2MDOvbNM9gk30w= Received: from BN6PR04CA0021.namprd04.prod.outlook.com (10.172.194.31) by BY1PR0401MB1546.namprd04.prod.outlook.com (10.162.109.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Mon, 8 May 2017 23:41:02 +0000 Received: from SN1NAM04FT035.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::207) by BN6PR04CA0021.outlook.office365.com (2603:10b6:404:cb::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Mon, 8 May 2017 23:41:01 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by SN1NAM04FT035.mail.protection.outlook.com (10.152.88.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Mon, 8 May 2017 23:41:01 +0000 Received: from MILHUBIP04.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 5B.95.19026.B0201195; Mon, 8 May 2017 16:40:59 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Mon, 8 May 2017 16:40:56 -0700 X-AuditID: 0ac94371-41ba798000004a52-2d-5911020ba906 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id D4.00.18148.80201195; Mon, 8 May 2017 16:40:56 -0700 (PDT) From: Bart Van Assche To: , Mike Snitzer , Alasdair Kergon Date: Mon, 8 May 2017 16:40:49 -0700 Message-ID: <20170508234052.32375-8-bart.vanassche@sandisk.com> In-Reply-To: <20170508234052.32375-1-bart.vanassche@sandisk.com> References: <20170508234052.32375-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5kS43k2CkwcRVGhbrTx1jttj7bjar xZ5Fk5gsVq4+ymTRtvErowOrx+6bDWwe7/ddZfPYfLo6gDmKyyYlNSezLLVI3y6BK+Pp5hbm glviFU1vPRoYtwl3MXJySAiYSLw7+Iili5GLQ0hgKZPEtpf97CAJIYGtjBIdbxxhita8mgtV tJlR4vWFQ8wgCTYBI4lv72eygNgiAgkSbVfnsoIUMQscY5SYMHELWJGwgIfE/fcz2UBsFgEV iSXHNzKB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i4oTAbvFB2XBAQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39450400003)(39410400002)(39840400002)(39850400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(2906002)(189998001)(5003940100001)(6666003)(38730400002)(5660300001)(2950100002)(77096006)(305945005)(86362001)(4326008)(47776003)(50226002)(54906002)(8676002)(53936002)(81166006)(50986999)(1076002)(76176999)(8936002)(478600001)(106466001)(356003)(36756003)(50466002)(48376002)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0401MB1546; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT035; 1:lUUviugiMBmKYd4O+YELugVohelFGXxr1ovm5WgKg3Hb4UlV5SEAulE3/yiJQvZuzI1h8x/DnZoVBkVVsiTgCHUEOWjv6+VegMvBuxEs2cV1hc6GWe9bI2bIt/BaOLthq6YNPI7MBUVSu9DiDnXODjF4a5SIxBH4YlfYnCYUWNXzlsQuGL4otenLW+XtDn7GyTdaKIdQB5pJ5y71cvswCpWaXQDcZqIAkP730OSiacA8JQVLpuI2k3ZHMR/ulAWfujm8gdT/4LWMXBSM1PCm0wO7SsFv6863L6HyRTc/u0f5k37pqeXR3bXdFmAn0A+N6Lkiq+Ype4+hXdpZhu8ZBQIx6f/tJ4qyNi5dTrVS7SPM6CD8tIUSs6ndpvKBGPXFrbuKPM9UYidsXnSw7+gzMKMJOvojXskIIojybmXEb8bUp9Sd4tyjnRarvxIDjL0wFHuHn7iYQrSPtY2g/HmW2w0yBXEeGCTy/cjT8A80R1U4fEnYDuPlMbNJxRoRrMQQ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0d43ae4-4f64-41f0-286f-08d4966baf84 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY1PR0401MB1546; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1546; 3:w+YHpVVvQk1aZ05kjJpzEAxnxn4IMBtBtxzkMsacckFABWlTYVj0GleuCbYNcYvsniJjc6TV/tWofKg+d4Cu1qO7BGRfGr17HG5VigZIJ/REOtjtcOiAvazl4V9s3HNeNUCpBJ8NeF76WfFnwy6iQ1Oz3MakvieodxIVRNHrI2p8cj6zZRj/S10YlyEFrZk2RBeHRvK12K83ELkEiDXN82iqmOYxGvqRlZKUw8TR8MCPzDTX/sKWAkDMYSYty5llhLEGW7pG328SMh+7UCwbc9ekXIMmvUf1Rvg+/DqXsRSqxTUCEKXt2LoVaUfkqiB6Db1XmO7angeRL685uslsxR4Jr4F+jiosg57w+nJtM1AhOBZ1hSr3Oqc0sGc1oGB/rp0cCXUsOP/YjYtx8kCdaWJEbLucgoWuI+NBAeBYtRyPkpEgfz3pNGZaccvFeV7gBB63Qw3Gb2asOumA83o+M4SbcW5iUhZhH8G9EhkmoNNEB/apF2cpvTOTVI6cJ3Lg X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1546; 25:CiNIGsVG8o2iKpzn8CirexPY1pSrNjJw7l04S5lvutFbqnw2pZBBKmplwCEX+8qUFG3LIXUPfj01UDDHIOyoUYb4Mv3Ge0mSr33M0f2smCzqLbSdshqNdC1UplHJnSIHpc1nuSvUGAmPoY5Nc6lXQYCcKss6FPnTR91abREvG2nazh/yjWgQnk13NM44vZ1vMBRg8ZTts9cOnUJ5LczHAuDMlXmuZPrsZmAc2Y95qydD/siaQoeUPJyEfYf5KfogjqGkbASC09766ai5MucdvyzaPLp9ZgsxILOEV3FfSXO8VzGxOvX1fzlyimpRQFphncxHymY+apwHO33ta/L0RvlqLibviEDcfdVECK28Am5Mz3S+DOWep5ZaJdtSTwLy0iIqU2lZYgRXxDiH1UOPDv9VLHsrfW/ZL1rG8GfRvdDkyjH4O60OJnC5HKAASuBJMYlVFS1JY947PItA6/hjG6d1XAbBwCTCRVgqHeXLWlo=; 31:tM7HLeI0EF2DjY7ee1h/r3cUalZJY4fqCz1cP3IQVg7zbKSMufZj3wIsvo8o1IVqLV0S08iLODsDC0+F7MTlYaUmTP1NN+xtioy7LbgJu7b0Y5Q2ioCBRsb7GmvvYL7M1k7Cnc6SIWXoW3tlqjzyTXE7mUpTgLbd47Zo24AB0q5FoG1HDATrrVzOSg8n0rtgssr8zhFAYxcrjJxqhR/Dywt5UTGC9kEO9zU5ykwXj6fn39VV2BKcmH2vZocTEPe7c01aGaBngZuKaixxoJZD6l4fRwcvIrkOXkX71FV9HFQ= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1546; 20:CYQXJO4mDL3BVq/vRj86mDgQlI1T3oFCwX52Galj3UYgK9fzHg28ztVcy1LqCl9M+EBWMPGUcesx14JMAYOWy3snM/agkUHTaw2754jPr4Ha5xk0GeFsn8I7qfabJ2n3ofnP69xkGgNAqPtYGp6jXZ1eCCPVIRdSTYY8kgQwBq/U3TN7/HbhQpXzly7Pd9irOFFfUOCFnoCiGi6tNWa68wyNX4FnBCtuOyCdX0iNZLcaDf4yqfKSbNSDcWs894/wwFZY3w40V/MzU8XtaysySf1JZgQ72r1J0oYqlGoyRAsuy+FrwMfgtF7erIRn+YZoKSoQAG5RhrEChUaH1g76hlJEI16FrQzuQnOqatGIQS2kNl8wbDei2TWPtBmgMHhkpc4D07+/ObdAvT1w8HZgimjkr90zJEwas0EIaU65gd7wDWA3qBqW4yH+3AK5TgUQsg2ORPygW6oh1qwPqcu4Njs6SBAWhbBb+AT9XqXQlncMP/Z8R7x/xfhupeoHqi49 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)(5005006)(8121501046)(13018025)(13016025)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0401MB1546; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0401MB1546; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1546; 4:MID9A/EAJsKe3+xRgKAAfFGGZn00RMtKB3LxR7wKY+V0w9RzTD65OrZYT/jzpS8RPC+XWV9bGC94UHgiKqDhNG/xMVErRmEhiTbdSSv/WOUw1AfDAJOMAD5YvgPCIi4nwCdasgSl2K65yHz5Jb/iTxThCLAlvDUcOZhNFe4yJitKK/4AyXJgi3dKDOFwgIBs+tvI4VaGuApYhBOzp81n5Nrj4TUz3sItpZ8cIN0d2CGAaDHGJkzL2FRlQaOLRG8NmhPgd16/Z03CvfAYUWeb/LNvWNXKvqRy08RsygjoXe8estp3jRawhoNSRcdo9B02XZCame0pBJk29p3cNKJUT8WjUctoxhkK74MLq2bknD2/+NjUyXqKYRPEX7EbMDzx8+NzQi4t0b5dQobc3TC9FkOgWAAN3WQ218v879rI0GEmm5TGbD38SfsY8woSzOXoVAEMz/wQB3HrzYJFRbrqhNtTP/nnw+N+/Rn22XaVcNOHhAyRFKAJK9k+cFuOuYRosNGrtVXYqD1kY6h0Eh/PGyizOpPfy9SHtUPSUMCirnkvVJPLRzw9LA03OMQJcxKtNICpa70OKCk7S36KwTNPFFnpOER6rfpJeXnx1fKVws50eK8b4gL+FJ3ji39ywtvdjsyzT2DFLnCWgw25Si1GHuq6Vymj092rFXaDEM28dNdSlglOaS0MX83Vj2WRxeTK+83yi2eNVqaHabD4Ze9syH4wrfyxe0auNfY+wlkocJgTneKkOg09QCK2JmtUSFyUBDGiHxaCLjRH2yZtoSQeqcQhaHMmWxuShIm6SHH5ZBJ22tVjE9mN9GbsrEY6CQZR7nYp5A2B5CCGFkwKuTDsB6ZwmMOfHq1UJ5Udyx2wW8LbHBq9pUnDI8nZnXlB6xbS X-Forefront-PRVS: 0301360BF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0401MB1546; 23:Gf0pIgCON55cJ/qbXBCAi59HPIqEm8OFyON+Pjv?= =?us-ascii?Q?Kl5GaCeyaSG8R2kAK72P4KIXLUYnhIH1k/Z1aqAHzErCLM9cbc7FiXfUx//q?= =?us-ascii?Q?DNGiz5wa96KIldlmdXCptyU38A67dpdB1HlCcI0rhww8StZqDUmZnIHV9ASx?= =?us-ascii?Q?vd5fir2H1z/z+NL767rmTutBCFerRG6aeAyL9G6hugdCsCJGIDkR95mNfUEz?= =?us-ascii?Q?qUOuymImYnj0Gp4FyrF0Jy1PJixDEiykSN6UyIWpGLP6rFCcnFQuJIWH7zlI?= =?us-ascii?Q?6sYdix14Fa2UpcUNH94yE401VFlCleOa4+wyx69ihsOPC3jMGpkI1KPP1qsl?= =?us-ascii?Q?umIw3qaeAzPGMSOKwKt2NVZvJWn+7LxBqPI242U5NbxwYCPGEsLpLDWf+Hz2?= =?us-ascii?Q?7BC1djB82O7gfnw+4a+/96jwQC7LyTFBGVnEDAc/4xRfLNxLbXjjKmtNvoso?= =?us-ascii?Q?CE2lnkO5l4hdCUMasvyno5UrOwgyIkWqqfBaqWshBQjwYiKO4bY5GLOsWmPy?= =?us-ascii?Q?FlP0xYn4iAbUw6Jv/aZfj14v7W4YYzrMQTxDzKlwkjF7q9ZovmkesE5jzHce?= =?us-ascii?Q?aEp4CIbqu9Ef/9SBKe5o7CnU+DThyg5ylVedmrX8AXkZJX7oiWv1Y2VaZmpC?= =?us-ascii?Q?hnx/yUqVNY1u4VBBQOd16eWMRzRtSy0EMZvum3Q4ALMOxxbzKMU9TZY3QWpo?= =?us-ascii?Q?2y0nQjXZzSaWnYW51DGxGmTt64rQfuamB7Z6i/kma+ZepesTTbOOLPUA7wiJ?= =?us-ascii?Q?CUM+QQux4d1iokw/DHoU7RzVunO8fnPpajdAR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KvIQFHJqapC3ATberfFrQns1uB67VlSGtCzy4RvyCHwhtIckxVrrRxP4IR/PPgxyzfxj9TzZhMn/6AnSra7fwaGME= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1546; 7:FJ9hCpNuGDDugEX2dj6Y0PEvm8uNv7BeK6/JzdtrwM74/IFC/uTSV0JLoUl6tBECC+XpbfzIkrlTVe2SGWqrecKri4VB+OW/xIRR6+RdstaflzkpcGTVLHSPUUZF1N/NoWoMAZFwMNUqaHgstjDjq8HJ9DDJbfztE7ixwwdoSZQRba+ONA2AJ0Wx4tLTQWGYhTnCHTK56Y6P+zHi37SajGXDrov8NUEDy/4L5Bdr8GeKGg0QvQ3DPbI3RzhjlThf/3h/ZMol0Pnv808IaOHjqgUCjb5oM4Bt/HrLxKbSyga+Bm4Fzu20JAeBfz4lqVgz2sIkI5dqXTJCbvSzCMPkig==; 20:d7g9YwPy0t3X3V3CQZRFMRzG8qzFKoxgJQvHngAUC92B40jzgboyGTii4fHbpHaErvX91yjqvUBk29LTjJj8XltBCELK/Q4BeHXBdSRf4FW4gZq95zHtLPe9dUsdePwlggQPncuNkCMnNczxAahBvnMTTCUVbzOyx7L4TqGyQgs= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2017 23:41:01.1735 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0401MB1546 X-Greylist: Delayed for 02:00:10 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 09 May 2017 01:41:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 09 May 2017 01:41:43 +0000 (UTC) for IP:'216.71.154.42' DOMAIN:'[216.71.154.42]' HELO:'esa4.hgst.iphmx.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-NoPTR: 216.71.154.42 has sent a message and has no valid PTR record X-RedHat-Spam-Score: 1.193 * (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RDNS_NONE) 216.71.154.42 [216.71.154.42] 216.71.154.42 [216.71.154.42] X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , Damien Le Moal , Christoph Hellwig Subject: [dm-devel] [PATCH v3 07/10] dm-flakey: Add support for zoned block devices X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 09 May 2017 01:42:23 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP From: Damien Le Moal With the development of file system support for zoned block devices (e.g. f2fs), having dm-flakey support for these devices is interesting to improve testing. This patch adds support for zoned block devices in dm-flakey, both host-aware and host-managed. The target type feature is set to DM_TARGET_ZONED_HM indicate support for host-managed models. The remaining of the support adds hooks for remapping of REQ_OP_ZONE_RESET and REQ_OP_ZONE_REPORT bios. Additionally, in the bio completion path, (backward) remapping of a zone report reply is also added. Signed-off-by: Damien Le Moal Reviewed-by: Hannes Reinecke Reviewed-by: Bart Van Assche --- drivers/md/dm-flakey.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c index 13305a1..b419c85 100644 --- a/drivers/md/dm-flakey.c +++ b/drivers/md/dm-flakey.c @@ -251,6 +251,8 @@ static int flakey_ctr(struct dm_target *ti, unsigned int argc, char **argv) return 0; bad: + if (fc->dev) + dm_put_device(ti, fc->dev); kfree(fc); return r; } @@ -275,7 +277,7 @@ static void flakey_map_bio(struct dm_target *ti, struct bio *bio) struct flakey_c *fc = ti->private; bio->bi_bdev = fc->dev->bdev; - if (bio_sectors(bio)) + if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) bio->bi_iter.bi_sector = flakey_map_sector(ti, bio->bi_iter.bi_sector); } @@ -306,6 +308,14 @@ static int flakey_map(struct dm_target *ti, struct bio *bio) struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); pb->bio_submitted = false; + /* Do not fail reset zone */ + if (bio_op(bio) == REQ_OP_ZONE_RESET) + goto map_bio; + + /* We need to remap reported zones, so remember the BIO iter */ + if (bio_op(bio) == REQ_OP_ZONE_REPORT) + goto map_bio; + /* Are we alive ? */ elapsed = (jiffies - fc->start_time) / HZ; if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { @@ -363,6 +373,14 @@ static int flakey_end_io(struct dm_target *ti, struct bio *bio, int error) struct flakey_c *fc = ti->private; struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); + if (bio_op(bio) == REQ_OP_ZONE_RESET) + return error; + + if (bio_op(bio) == REQ_OP_ZONE_REPORT) { + dm_remap_zone_report(ti, bio, fc->start); + return error; + } + if (!error && pb->bio_submitted && (bio_data_dir(bio) == READ)) { if (fc->corrupt_bio_byte && (fc->corrupt_bio_rw == READ) && all_corrupt_bio_flags_match(bio, fc)) { @@ -446,6 +464,7 @@ static int flakey_iterate_devices(struct dm_target *ti, iterate_devices_callout_ static struct target_type flakey_target = { .name = "flakey", .version = {1, 4, 0}, + .features = DM_TARGET_ZONED_HM, .module = THIS_MODULE, .ctr = flakey_ctr, .dtr = flakey_dtr,