From patchwork Mon May 8 23:40:50 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: 9716867 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 3E14A6035D for ; Mon, 8 May 2017 23:43:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FC802684F for ; Mon, 8 May 2017 23:43:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 223DF2807E; Mon, 8 May 2017 23:43:35 +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 AD5972684F for ; Mon, 8 May 2017 23:43:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B7A081F03; Mon, 8 May 2017 23:43:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9B7A081F03 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx03.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 9B7A081F03 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="Xx8oOUKr" Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 79A9F13CAB5; Mon, 8 May 2017 23:43:33 +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 4C5B341284; Mon, 8 May 2017 23:43:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v48NhV1h008604 for ; Mon, 8 May 2017 19:43:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9B11A9F9BF; Mon, 8 May 2017 23:43:31 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 43A6213CAA3; Mon, 8 May 2017 23:43:28 +0000 (UTC) Received: from esa2.hgst.iphmx.com (unknown [68.232.143.124]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DFAEB8046F; Mon, 8 May 2017 23:42:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com DFAEB8046F Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=Bart.VanAssche@sandisk.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com DFAEB8046F X-IronPort-AV: E=Sophos;i="5.38,311,1491235200"; d="scan'208";a="112966646" Received: from mail-by2nam01lp0181.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.181]) by ob1.hgst.iphmx.com with ESMTP; 09 May 2017 07:54:05 +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=qAoHp4VS3HkzY98RKoKE7G2CWfL26joFNQy3rdEFC7c=; b=Xx8oOUKrue9eO9SMv8JicOOj0K+Ob77RalPT4SJicuvg3Z+e/CoCAM/Y/PH06XpavWMs11XDxkEzUtipufxaSHBql5pIbx2Hrg1nkkdQa+GwVf7EWdOcLeNtmUh4pXXKrhUfpG+GI9ebaoDnHbBzibZIbU+bqXz/DL7cio7+FwY= Received: from DM5PR04CA0045.namprd04.prod.outlook.com (10.171.152.159) by BLUPR0401MB1539.namprd04.prod.outlook.com (10.163.83.157) 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 SN1NAM04FT029.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::203) by DM5PR04CA0045.outlook.office365.com (2603:10b6:3:12b::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:02 +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 SN1NAM04FT029.mail.protection.outlook.com (10.152.88.147) 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 1C.95.19026.B0201195; Mon, 8 May 2017 16:41:00 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) 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-2f-5911020beaa7 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 65.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:50 -0700 Message-ID: <20170508234052.32375-9-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+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kS4Pk2Ckwfr/LBbrTx1jttj7bjar xZ5Fk5gsVq4+ymTRtvErowOrx+6bDWwe7/ddZfPYfLo6gDmKyyYlNSezLLVI3y6BK+PQcdOC NoGKBzP7mRsYl/B2MXJySAiYSPSeWcnYxcjFISSwlEliw/3pUM52Ron+az/YYar6n99ihUhs ZpT49XUOE0iCTcBI4tv7mSwgtohAgkTb1blgRcwCxxglJkzcwgySEBbwkDhy4yLQJA4OFgEV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KMREMt5qLiRAChw30wwwEAAA== 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)(39450400003)(39400400002)(39410400002)(39850400002)(39860400002)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(478600001)(53936002)(189998001)(305945005)(2906002)(6666003)(33646002)(50986999)(5660300001)(106466001)(2950100002)(81166006)(8676002)(36756003)(50466002)(48376002)(77096006)(4326008)(1076002)(54906002)(76176999)(5003940100001)(38730400002)(47776003)(8936002)(86362001)(50226002)(356003); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0401MB1539; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT029; 1:bBXBX5KW3wiX3nQWRLxgl4qah7kJVVLVxvIB5h8rpz7GCvbBYs6VxLeWHtOqPbBbYCgB0esAIlUA4TzKDwOKgDsdXqlvTE5gAU/VLQ6GWrLwaFU6uqFP5HdPysnH2vfJYHh5H3S9D6oXwilnCg6QZ6vTl83V7tuJrTng6/BHzQTSqF99f1CnHyngzGyE/nKoBGLP5BX1C3mWuO1lrGlUm+KmpQIrKYfBe2vJw20pAIg1k31tMGjiGZQmlvTgLwp/HkOHkGR1tgK9ifOtZK9BCgfsQzNR2SHW4p9YBudYZzM8yGh9Jc/bgzXAgPLpzoyIKBTZy7Z7J71qy/xlNw9xSwr98nhro/0Z06oCHEIEostUI2DAqQ6JQxYPhrEHIHyipU0q2/Q6Ha6+4g4K2jQO6DVc9OydeANXek8ccsNGy01j0V29AkKpBZI342GalCSpLcKxDuG2xI005C/wu5peZSyiE71wlg9SARW/4uhqr8NKOwsohTlghOwtB6UNfcbO X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e38cf52-5564-4e26-2efc-08d4966bafb7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR0401MB1539; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1539; 3:g//jEHhnFoJfarnABKvrXg4/Dy70FtqP2MiOZE1vO8YC7kLDAR5gsH3KuRwOWwGff1QZtM5J9S8CWX0/ohJ/tJkY786txEZbaL4WEUcFP64ZqWBmESC/C+wa4seEIrfq5nPDXWmXDsC34sTYxx6iskh7jcratVJ3tD0pwwM+Bd/affqE7wo47EY+IywB/PZdYpuiKJ50LZhHnMcpG3nNABCy/fo0ylBuXPdXXyLc0iM3f35XGVL0geLqX3RdM1f8gvyJgrTtFKFdVh+si2LSp122S1LkWuSmz6bZtOeS62nqzbDTeZZERZo9NUPMRSmo/uZJXwmnlPGzgDRntTohhx/LZiwPtu54nYsR21H2TIwjFfv8Oo2B2OzHb0ZHuj1flbkKZ9l33g5YHEK8vZFl3wfd2m4m4tKX9SujIOf2HopWFYBkUxSkA+O3FbXfadvFXe/F4h9e86MJVX8FoF2pCEhYv6rQ8u7U/NhlU6/xbt3rdlL5/NlpGEcpCiMObu+D X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1539; 25:cIgrtrcxbtQtvhMtpDqN939QXDXr1iMai187ZxXEcOxnxBhQ9Z8/0KPMnPENM1WcWlqYdZO6YofdAMDsdvWmxlCUkjqm0yJLdZjFqYcauJm3ArhAA1eDsYNDKu0TJ+zMWUeyq1R4DoTL/82NxC/iSRg/n8eMUs06+wzB4vYAMXZipiu/nuy/CPw+HnG/SbRJWGymavwkW4RDAl4q0uebw+oJqgWmRtldMD47qKf/e65hqaGmpf2boLf+uDBn0Nd0Z9smgreGLxdYDEw/XqRkVc1oZfLG71FWL3MUpimQy1RTDkWa1sBVSnpFF8j6CmRdrs+NjexXjd5gQOwwNxYT7wEl+k52qt3RHbAmcCxKZyIX4PCXkaY7AuBV2APf2SNQ7iHEhtIHwbC07a4JPWMCXMaYC9+GKPgG9ZhFOt9pXgKKM/7EZCngV7l2Skq9rAHXDx8GD4XCyD7xqQSPQv5FW3CIL3LjPVqlfTohaQeAIL4=; 31:8eTWNKS8DaVw1eKaefDkbgIcCFp4hRDTYNHF0KnmZ4/u7mo2gJj92vvjuVxkWszLkwCqUMhqInsLE9zm1ouodsFA2tFz4uZR8XgJXqaYn1GcPrmuL00+oaNHCVdwXbEYzKI91JnAuh60E2SOV+i5DWL6J31KB26TR/wks8WkIojdz5s7ONnLSRl7Paz8PO+E4BxIafMWiPKSxmNCOR1752n7TkdH7NtIV73V8p7LAnDw/ttG6IGXNma45weFAgFq1Gh+awNaGiZkwyVs7X/Uxg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1539; 20:MqmZJGyrivhPi2UPr3Rcevs7NZ+IsN9D6bNcN5icweDI8iyj//KY0LxvQ81XsZj3WMdL+QA2g68MuXG1erYhmivd/c1toJDhdhPFiy0zL0fSUr24kA20g4CpKIfuz5zqwv1gMRQEX0RhweidequIrvcWuyDSzkOOfKH/A0yzPjFvYlHnA4nu3PrP7or6oQY/Ypcw2iHghv9mi5yVTpuONp4xuz7oqEVQ8+uJDUsq15kRISeyW8Fdx3HUcC+24GJg3Tdb4r0p1nPDZ99v71Lj8cjNoixRoGNMP90jZVkf0LjKdEU1BRmbxl+l6Y9VeTC8191kpygGfkkK0V9cNriOO9bQdPvu48T1gjn3uBH3QbPn8ljLOP0Fh1LSqZqs66wNkhtYpLoYHeqouElMiJpL9XF3Z1MlIW0fxISUJK/awEFO/g2MEfsc3AwlvMLh5PHRFU+FiZ8yI1xFW2x14DmqidRFWFm8Jt4RiQzdA/tRAApDY6sT4KGz6q6WlSxRdHoO 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)(13016025)(13018025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(6072148); SRVR:BLUPR0401MB1539; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0401MB1539; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1539; 4:yPJMk/lnX3HsvxKa308lW25mxDfUI4fhMUCj5FqRx81aIGWhiQVj9KJSQB58A57MUDdJmzbnD4Obs6PMbEownCWxicHnv1Kz/BFROepXk0z2TYtfXW8EUxZut9bv2cDIQ4IVcjG/6HHKiBKh3+STryTA3Gl6kV8Ay+NRNcsh9+rpoy4MLvV37cUiOwfGbFMkYzRIkv+QdTQ7pIJkZXNzq47NzcjpXHm/VhFcdukGUEVxe9SvwI/YCIjQQ9JroQXG2l5nlmXBGZh/zdek8fZaSwPxl1rO0k3FHvJ4rcBJvDP1xm7MGU1fLXj4AdWv+hMw21JCMQmr5FDZ5vUnWf/vJKdiEyt9GbOXWBPHBDCeYWmFicpGYVKKNNs0R07JMyv/k/qztvoEQRROt1GaiGoIvXxkYM2g7Kq+i8NlDk/9Msec5VhwkzK0ygmLTZZVoPBCKlVCiImjPBxi5tRuePLx4P4dUNdkYMyKd/osim6XYan0SG1cWriS+ahtRVm43hUpd2SGof/7Furo5EI1IVv4KZ9yl4fAGaInbsxXK+ZyIM7kROqbk02zxC9+DUadGju+716lWjRZV8/ZA9tREsStBbwVLahy1rGv/rJTXdoyahW4XwUhE2PonV5OgBtrHD3NCuEbaPqjEX4nKL9cZ9oxPGple0lpNYCj/7LIsPjfsbD9b4xk9Kv0v1O0IH3bB6ul0DN7lV+uce+anQZJO2rDA5kCvQ1ChTN3RD+/5GLwXoaCzMlxYuKS0qy/GKjsUp8f13qgx0WPMAEOo0rJ54KjDdYsFIL5vdfqy8MhHWeVo1DcmEbGG+aYHbz9iQ7vigIB/ixzOs5PI2g0EPNcwl/7t+5D+d0r5xyl/n+BRzYvBTGagZScrdEbF7CanMmWPouJ X-Forefront-PRVS: 0301360BF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0401MB1539; 23:hzPtahfRrKtnGP/QtjyoGev0bk3KW+EXIFybiop?= =?us-ascii?Q?5gx3LOeULw3TBG1bIJdeylkymXFlFFqR6ORIeAA3jyayiJM0qbaygV+flBpV?= =?us-ascii?Q?xTYD7xRx6yBI+S2sgSOuRFFf68XU0Ah66IdbkrNNmaj5cF7QG0KY6mm2uesj?= =?us-ascii?Q?7ppcG9IiRpK66nQEbQ8bLv9t0jzLIjPATYAJu1qiNCHBblJKUoAy7RiVROU2?= =?us-ascii?Q?bxz/7WHEFJABkDijSV5EVkPmiIB9PDv0W/5XnAp1SB0rRKS+BvoItRrpdm+p?= =?us-ascii?Q?3etVr0j+0UHuyUbTwNPBq0P/FrlQdOlGRSfaecrsswaKHp4dvoAo8qoEiuNK?= =?us-ascii?Q?ho8H9wCo18YE12jDhezAFWQuuh5BQQbLLPIUvaez94ZOFb41tjgPuNKw8eiS?= =?us-ascii?Q?AaNJHrrH2ez6kvw7Tyvecs9YGxjyF1USijLGYQgDrUTqIw08JHS0ej7j6MrK?= =?us-ascii?Q?zfhlIwe1o25eDj9156w3Tsjt/VVgUy7fwVa5T0nF0zrfOgg7flOXJU5rycwV?= =?us-ascii?Q?wlH2d2z9NHnGo8j4ovlggo+Nt7xuG7pQ8gkkzFBGdwTQn3JUIhcjmKPYp6l7?= =?us-ascii?Q?nG5en1NTEOGt0UvFRICCdQ3tzOVcJKDhHNOuVqiPH1NuK6cZIFc0qyLNQeU1?= =?us-ascii?Q?jX/DNBMUwDtXUOSOEhFMIONjsPSAvszkkKmdft1kNX+aiJA1XXX33/+p6xgS?= =?us-ascii?Q?LxN6Vt5483JaIfCeYH8O2OyfUFSrQ84IzgUdH0R/DqZ1i4ZdFMSVcAAmGDmr?= =?us-ascii?Q?ch8poIUF20eI6oaCyc9+GrKyuXyxqUr564mmtViPYT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rqxRbBZ13cpwvanNCQojlNk53xcPva1fkouOPMmibJYocj1/rukks9eoIrTbVfXzT0SBj0ZRU2AzFYHtkExFqfA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1539; 7:p+Q08Ba0bbY7CFHLH30xglahysXOt/CNUw/lbBNzTSZP02ddtKh6zhZ2Im+vd/j8NuQIBzEUMe6mlE1RZFFxrCeFlDVexfPfBmdfJnUPBH/sYvIKNPJsupVQX7Gzera2FkJGodhJpogKoIVzLek7yDt7asvkC3+Q253iNnerP6GIeFn4up2Ksgn6V7RrPRhsvLaW3YCNuw9JbfcRMSt8lIbIhTRH5Yj0bLCD5TCn89GvfHDbuTyhuPIs7VWVZ/Pr8eVs5+wQumA/G1pJt26bUfkzZK/NiwNGSYiP9lfbx2hPKPTh1WBUH4SERnWe/CZfAFETFnH0+ZeHcS5w0eS5Nw==; 20:b9S8uk0y+jQMWvaFdtn5nk8cf38+/RblEST8EGvSeO4LF3d320uEd0mx5wW2v9C/8JyaVrZkv65Pa1bvHsa4zF4uXBCaV4wcyqzPopY5QSb86nnf/WXHEVVa3zZUpLd3pPMVVj0nFY3UVS0mtz1E24cuwq99sctMkVJ+URLqdS0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2017 23:41:01.5079 (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: BLUPR0401MB1539 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 203 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 08 May 2017 23:42:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 08 May 2017 23:42:52 +0000 (UTC) for IP:'68.232.143.124' DOMAIN:'[68.232.143.124]' HELO:'esa2.hgst.iphmx.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-NoPTR: 68.232.143.124 has sent a message and has no valid PTR record X-RedHat-Spam-Score: 0.493 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RDNS_NONE) 68.232.143.124 [68.232.143.124] 68.232.143.124 [68.232.143.124] X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , Damien Le Moal , Christoph Hellwig Subject: [dm-devel] [PATCH v3 08/10] dm-linear: 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 08 May 2017 23:43:34 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP From: Damien Le Moal Add support for zoned block devices by allowing host-managed zoned block device mapped targets, the remapping of REQ_OP_ZONE_RESET and the post processing (reply remapping) of REQ_OP_ZONE_REPORT. Signed-off-by: Damien Le Moal Reviewed-by: Hannes Reinecke Reviewed-by: Bart Van Assche --- drivers/md/dm-linear.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 7d42a9d..794519b 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -89,7 +89,7 @@ static void linear_map_bio(struct dm_target *ti, struct bio *bio) struct linear_c *lc = ti->private; bio->bi_bdev = lc->dev->bdev; - if (bio_sectors(bio)) + if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) bio->bi_iter.bi_sector = linear_map_sector(ti, bio->bi_iter.bi_sector); } @@ -101,6 +101,16 @@ static int linear_map(struct dm_target *ti, struct bio *bio) return DM_MAPIO_REMAPPED; } +static int linear_end_io(struct dm_target *ti, struct bio *bio, int error) +{ + struct linear_c *lc = ti->private; + + if (!error && bio_op(bio) == REQ_OP_ZONE_REPORT) + dm_remap_zone_report(ti, bio, lc->start); + + return error; +} + static void linear_status(struct dm_target *ti, status_type_t type, unsigned status_flags, char *result, unsigned maxlen) { @@ -162,11 +172,12 @@ static long linear_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, static struct target_type linear_target = { .name = "linear", .version = {1, 3, 0}, - .features = DM_TARGET_PASSES_INTEGRITY, + .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ZONED_HM, .module = THIS_MODULE, .ctr = linear_ctr, .dtr = linear_dtr, .map = linear_map, + .end_io = linear_end_io, .status = linear_status, .prepare_ioctl = linear_prepare_ioctl, .iterate_devices = linear_iterate_devices,