From patchwork Mon May 8 23:40:51 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: 9716915 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 2A8F260365 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 19E1A24B5B for ; Tue, 9 May 2017 01:42:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DA8A28304; 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 323D724B5B for ; Tue, 9 May 2017 01:42:20 +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 BA2913DFD0; Tue, 9 May 2017 01:42:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BA2913DFD0 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx05.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 BA2913DFD0 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="pkW1qmBL" Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CA26D18BA7; Tue, 9 May 2017 01:42:17 +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 F0C4E4E9BB; Tue, 9 May 2017 01:42:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v491gDtD022708 for ; Mon, 8 May 2017 21:42:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5E2C618A3A; Tue, 9 May 2017 01:42:13 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A17B19149; Tue, 9 May 2017 01:42:10 +0000 (UTC) Received: from esa6.hgst.iphmx.com (unknown [216.71.154.45]) (using TLSv1.2 with cipher RC4-SHA (112/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59846804E2; Tue, 9 May 2017 01:41:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 59846804E2 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=Bart.VanAssche@sandisk.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 59846804E2 X-IronPort-AV: E=Sophos;i="5.38,311,1491235200"; d="scan'208";a="17183047" Received: from mail-dm3nam03lp0021.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.21]) by ob1.hgst.iphmx.com with ESMTP; 09 May 2017 07:41: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=g0zLVd8p0yxRCqryoakOb+MOc3mH9puQgHrn2pqNtxs=; b=pkW1qmBL4aHmiq17XsiJCXfkviLS+/tF8Ean3WcMln0It99sVOu1/4RocFSkq9y6GHlo0Njj69W8A3f8NCtREuKTLjut5VmahY81f5zqVARZ4qhkKcfsANIt5TQO35fyA3LKJeECQxYYtWIg7jc1N6x09QViFchyHeUdBcQJCLE= Received: from CY4PR04CA0039.namprd04.prod.outlook.com (10.172.133.25) by CY1PR0401MB1210.namprd04.prod.outlook.com (10.160.166.11) 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 SN1NAM04FT044.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::207) by CY4PR04CA0039.outlook.office365.com (2603:10b6:903:c6::25) 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; 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.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 SN1NAM04FT044.mail.protection.outlook.com (10.152.89.63) 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 3C.95.19026.C0201195; 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-30-5911020c7a1f Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id F5.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:51 -0700 Message-ID: <20170508234052.32375-10-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+NgFrrBLMWRmVeSWpSXmKPExsXCddJ5kS4Pk2CkwdH1ghbrTx1jttj7bjar xZ5Fk5gsVq4+ymTRtvErowOrx+6bDWwe7/ddZfPYfLo6gDmKyyYlNSezLLVI3y6BK2Pbxnus BYs0Ku51v2ZuYFyu0MXIySEhYCLx+lUHYxcjF4eQwFImibt75jBBONsZJfqv/WCHqVq5fQkL RGIzo8SztttgCTYBI4lv72eygNgiAgkSbVfnsoIUMQscY5SYMHELM0hCWMBRYtOyV6wgNouA isSnpfuZQGxeAQeJ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gRAMW3GtbEAQAA 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)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(33646002)(2906002)(47776003)(305945005)(38730400002)(478600001)(53936002)(4326008)(1076002)(106466001)(5660300001)(76176999)(50986999)(36756003)(48376002)(50466002)(86362001)(8936002)(5003940100001)(6666003)(189998001)(2950100002)(50226002)(77096006)(81166006)(8676002)(356003)(54906002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB1210; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT044; 1:FTZ+YANo0wNy7Rmkuqn6mRvWEGh0ITZhN8ZhQD05ieqxcS7EwZHbeaAwL1Fuik5hc8VdZ4uhSwA/xR2saT05BXZJ2Q5j8TLmn+PoEIRstrtrIQ0At4s9yceIArhDdNsEHQ+i+DCpX1TDr1vCOG3m0Cg/MLNgamxAUbQpat/XG9lDnGkECQ9peThbQMBitFxN1lG5HLOe4Ku6e869foN7MY53ohG0q3mJ/F+IK89ZF2MYNlSqE4rsrstsDqDCi4MorxEcuMZh+df54bFjRrDMiYmd9qgHyLLt+Vx4/SH5z1+ZExSoq1R8y4g0z0zQqv9Z1bGpbbGe/61TI/VZnTcYqP8EhRt9qgN6GLGVCSG/RukBPus2QgvcbXEH5UnAKTBDCIcEyna5o5A3VQ6Q/DDMHWwvTIKiPCmE5sVgiTDHD4ZBtHrWhjO0AuKlAO7rROazzeWBDBh08XoNjbDXFpFTpHZBcALrPBTcb8uw5D+3SdzUcSMA4s16IZFSv1rNGUPKlce/17uwHuuwMxyhaaugwUbh46RExPgsmj4PiTsnx7E= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c5953027-9c34-4d3a-f840-08d4966bafb8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0401MB1210; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1210; 3:pVX7697+EEtTLyqS3e0XuHDBp/bIJ79G09Xj1EGop8+kqIBy/P8UQ427gMGQWf5qydCEenOZXxoBk0E+IBMbgy3E5q7wo+voLw4KU/+4o/Zp9E1nf+Tnm23NMzzFcUrPkDhlKYrynRS0gnwv53nzIcKjfoOCuO3BI50krgyMKE0I2M0iL0VUZOiCY8jIVoY1MD778PC184KvXtQfM8zs5TI3sjRVXa8G32Yi3r2AIhom7taSOeypDFDAzY4djJEwy4MnsVlIqG1vADBhVnw+fKvbt659jZ88QMiy7ni6s7mfdwwVsyvTUSFd1q5lDCpxAXUJa+1woH1NVYfjbukLWvMUze3e1+A9cQJn7v6Xwnnx+utbq0aSaDeM3ELIjeSLSffTOLFyFEf5ZBbmRMMZUN6AZtzwOLn6U7ePrIEIoVmFSOdZTlMyB3tpPKfjVnjhu9mE/8z5uHGJhbmlqKWDi+q1vsYa5Rf5Jd/b+m2lRAaJGvFsBWU7q/T0GSJMGbHZ X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1210; 25:Du1MYbbKHt7cm2IeU+WpH4qnAUzMEWMh0mNgvTNZl+u6O9ocKOp8KuvHvnzHYKnNxA0+X6XB0zxBd+0bKCOzwEXB3whtV+ppNHL29kEjOSK+lARdkNgPKp1W6ZT9AuVDJjQGSf/TRQkEUB4KFAkCQ6kZWHZcUsW5sOvps6LgCXl9PIkqMJpBSktH60UlHDU4sEfIhNu5VfkqWbEjL/vJEFb72xfU+c0YJvcFMm6YpMri8+NuoQbOJAn8l/P/Nzmr4e5A3MYB/ctVfhQWPdSm7mXkV2EOc3rfVLe0+prEQLrHhEeGj6lbUCWaye1mW49BZ9qc5xre2iU+a7MWIgpcZB/yhNDDEgB2sdqlA1yhpxI5waxoo/J7jl4VvOhvNRigNAMVi+2asq7zsbMPZQzAr6xHsjHlog09H7VO3hcCZa/jeJEfzIFhuXn9Nqdraxm0pPDw46JL6yR7u3NgWB9RQyOOnrYVbJAMfMXT6axPFUk=; 31:gT9wewYsHk1s8FNKUH4Ph0FOGmavoDg9nKfLeZysrhu/umJpRxAFYkyQ6PANzDgPqos0Yr7rpMnagLABSEsAgFZI6h0VzNeOPRXCDykQ/wA2VlocFsaxo/BOpa0tQlb5DCDWaLLbWWWRvqc+LXplQEuOhxwVxevMaYteA9o31eF0JhaaMUnJ2GNuUTwNzRVxmU8gN48z5N/zZakEOzoXyAQBVMarvPA7wrW/JkdZnsA9PcQyl5bBCU5U0kiLAC9i6G9TbifNPBjbyw60WLuYgg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1210; 20:Y44VJoc+p2v1YHPg6UjQlDtod4uaMvpXv6f4bZwzfQkmWbir5mqwCEsfxXYnOh3IFPubDPR7A5hwmpR3UPmSHyERCf+eYy5NmKkwZufoM8J+LiAXN2hj7yCKHTZ8JzAmgVw3GICR/YXAgg4AvFIVFTu1DoXndB6HQEtTqWgzAPLAqp6LT34D28oNohCUBRF1KjGDfHbgX86ICfnom7h6/HpU6PVkC7r/5DdvqLngHqBQMM6X1BREVjHOx8afC1OFuCi5ACJXLqgHicIWPsg5CdemzmQlsTdFfT4iVZDay6cYcDGxBFvnXR/nyWb3EC4WKGEMxDpLfJeaiucd84Qt2gPAcmiohwvK5BQu2qhKfdE2Nla8eYvyjkSrt+7SWzjadweC1FekJdYAWaU2usLDSfh0DdB5pZcrbMBJDE3320aRcDUYny8Y7zshJA0TnnVWkqu1IaG6CVNUYUF/g4qiNE4lBLr7N4GNz809DtlkFLIZ6ufksyVug9nWCR02S2cM 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)(8121501046)(13018025)(5005006)(13016025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:CY1PR0401MB1210; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0401MB1210; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1210; 4:rANr4iqF/ktqkGdtgkN/DYCs0PUkL8Fcxd7XlI+mr7jSciTYWIhtYZVveRyr2WBWVufau4Ir/IpNuECWeMGOQBekQ9JrZuGc2Ek1TeT6zQAejcAgMzjzJaH+lLBvZbd21R6nOIWJNLUWf7lA1gG59jdiWUkwcWZyTPO8HGJOZd4BF6RhqkapxMcXjaq/cC43NMTE5UDOwdu3sZHZAH/C1ywLlgmXLPXviQpk8zwssKUad9JSlw1jAaqOhgvqwvaXj0VMQCo2CEuoFUlpNf52LdVydNmXlsdEvXJ7AUCIt8h13APoUevdjB/E/JteaDMkvYzrmMd6kvRJrC+Z8KGcb5XUqDLHAkk234OurPbxmixjGqySfkLmKYXqK9Lf9iiRFe7+rPnOzUmLvKgA/AVuy3xKjMpCD6fHGItz9Q/VnvGgZaS5nNo8m1h8zRV8KYN3FBYwylJb8SRSiZvhM9airFQ31dOf9KYyl7yxyoYfcDyEbljdUCNrv8HKoz2VRaIDguNj5tcqBGmeXnA4MhVcyrZP8BMpX/YwpIBZspgYVJBGrMMRzkP2eyMKroxFJI4JdwOtGHAp/IUtWX2g6PIoc6fpIL2pgPZu86NuhzyBhFVmD94/50ApY6NO89rsvO3RWekjg09vo/51ASKmHJJgkcuN/g9TNGlThn8Wt5UeAF14e8uheyJMZ8Je13AqUIyEvjkKpQF/VN61LVK4A29yo1WYYm8jBBxgWSydkJ5mRVTFvQAkKSQbGRWDtiGQnIIoPIC09KQTRSiWKbtYR2v0OYsZ0TBBb8uwts9Ch+h82g49fjefphdV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jVqN2gRK09zYqnuDvqH/HyGX0g51dklzbpc6KGwm2y01Q==; 24:Jj9x5ybagWjjrJzJ3KIVvpREYMWawsWdWo89J00SZvFdN6GF9y1Lo4YMZEhRheecZJYkd9COJUZljuDyXFMKmCe2HyXl2aN4NWvXIDrHK7g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1210; 7:O9TjOAEJNZC3DvgLNDJbfdJ40IrcKFbhVdE6rU1v0aC8wf1kikLrN4aCE/K0vFZIaPqC6mZXz06OkC20r4V+4x90eeh2rO+BRUP7HHB/9He4vkuRWcagokSE/di9kQ9z55qEc1RDub+XNsfP8IAusFpLNwkIAAVs46pk1UAicYvT8qFD6MomNolA8Q2pz3OChuIwlitPG1TbDmhzr2kzwqGIoy6xr5nnGHXSZ0s0WMEPiZ2MDvow/S1yyh7B7m40fLtFuCjBw+XuDIZwiZ6vgVfOVtFGtRf1sOiCfsghUD4I1xdb6cZJzPb5AxM2jtkEsKsfdNuAVy+R0GF0zJLQrg==; 20:G4wtX6OOO6VJIxyuZ8LTE4qhoWkCRoCypxYrYGq39L9L3dO5xXulGbzmkqMfDeLWj7XOiuAGvRKab0e/CIcc8H8IF2xZ8eJtp2rKHKQWH0HKVTeDCcl8bO93Lo8lBhlsLzT7dnMdrr/kcWLSASG4E+RMeuljGPPGF7hi85E+jOY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2017 23:41:01.5336 (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: CY1PR0401MB1210 X-Greylist: Delayed for 02:00:08 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 09 May 2017 01:41:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 09 May 2017 01:41:42 +0000 (UTC) for IP:'216.71.154.45' DOMAIN:'[216.71.154.45]' HELO:'esa6.hgst.iphmx.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-NoPTR: 216.71.154.45 has sent a message and has no valid PTR record X-RedHat-Spam-Score: 1.192 * (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RDNS_NONE, SPF_PASS) 216.71.154.45 [216.71.154.45] 216.71.154.45 [216.71.154.45] X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , Damien Le Moal , Christoph Hellwig Subject: [dm-devel] [PATCH v3 09/10] dm-kcopyd: Add sequential write feature 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.29]); Tue, 09 May 2017 01:42:20 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP From: Damien Le Moal When copyying blocks to host-managed zoned block devices, writes must be sequential. dm_kcopyd_copy() does not howerver guarantee this as writes are issued in the completion order of reads, and reads may complete out of order despite being issued sequentially. Fix this by introducing the DM_KCOPYD_WRITE_SEQ flag. This can be specified by the user when calling dm_kcopyd_copy() and is set automatically if one of the destinations is a host-managed zoned block device. For a split job, the master job maintains the write position at which writes must be issued. This is checked with the pop() function which is modify to not return any write I/O sub job that is not at the correct write position. When DM_KCOPYD_WRITE_SEQ is specified for a job, errors cannot be ignored and the flag DM_KCOPYD_IGNORE_ERROR is ignored, even if specified by the user. Signed-off-by: Damien Le Moal Reviewed-by: Hannes Reinecke Reviewed-by: Bart Van Assche --- drivers/md/dm-kcopyd.c | 68 +++++++++++++++++++++++++++++++++++++++++++++-- include/linux/dm-kcopyd.h | 1 + 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index f858467..6487905 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c @@ -356,6 +356,7 @@ struct kcopyd_job { struct mutex lock; atomic_t sub_jobs; sector_t progress; + sector_t write_ofst; struct kcopyd_job *master_job; }; @@ -386,6 +387,34 @@ void dm_kcopyd_exit(void) * Functions to push and pop a job onto the head of a given job * list. */ +static struct kcopyd_job *pop_io_job(struct list_head *jobs, + struct dm_kcopyd_client *kc) +{ + struct kcopyd_job *job; + + /* + * For I/O jobs, pop any read, any write without sequential write + * constraint and sequential writes that are at the right position. + */ + list_for_each_entry(job, jobs, list) { + + if (job->rw == READ || + !test_bit(DM_KCOPYD_WRITE_SEQ, &job->flags)) { + list_del(&job->list); + return job; + } + + if (job->write_ofst == job->master_job->write_ofst) { + job->master_job->write_ofst += job->source.count; + list_del(&job->list); + return job; + } + + } + + return NULL; +} + static struct kcopyd_job *pop(struct list_head *jobs, struct dm_kcopyd_client *kc) { @@ -395,8 +424,12 @@ static struct kcopyd_job *pop(struct list_head *jobs, spin_lock_irqsave(&kc->job_lock, flags); if (!list_empty(jobs)) { - job = list_entry(jobs->next, struct kcopyd_job, list); - list_del(&job->list); + if (jobs == &kc->io_jobs) { + job = pop_io_job(jobs, kc); + } else { + job = list_entry(jobs->next, struct kcopyd_job, list); + list_del(&job->list); + } } spin_unlock_irqrestore(&kc->job_lock, flags); @@ -506,6 +539,14 @@ static int run_io_job(struct kcopyd_job *job) .client = job->kc->io_client, }; + /* + * If we need to write sequentially and some reads or writes failed, + * no point in continuing. + */ + if (test_bit(DM_KCOPYD_WRITE_SEQ, &job->flags) && + job->master_job->write_err) + return -EIO; + io_job_start(job->kc->throttle); if (job->rw == READ) @@ -655,6 +696,7 @@ static void segment_complete(int read_err, unsigned long write_err, int i; *sub_job = *job; + sub_job->write_ofst = progress; sub_job->source.sector += progress; sub_job->source.count = count; @@ -723,6 +765,27 @@ int dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from, job->num_dests = num_dests; memcpy(&job->dests, dests, sizeof(*dests) * num_dests); + /* + * If one of the destination is a host-managed zoned block device, + * we need to write sequentially. If one of the destination is a + * host-aware device, then leave it to the caller to choose what to do. + */ + if (!test_bit(DM_KCOPYD_WRITE_SEQ, &job->flags)) { + for (i = 0; i < job->num_dests; i++) { + if (bdev_zoned_model(dests[i].bdev) == BLK_ZONED_HM) { + set_bit(DM_KCOPYD_WRITE_SEQ, &job->flags); + break; + } + } + } + + /* + * If we need to write sequentially, errors cannot be ignored. + */ + if (test_bit(DM_KCOPYD_WRITE_SEQ, &job->flags) && + test_bit(DM_KCOPYD_IGNORE_ERROR, &job->flags)) + clear_bit(DM_KCOPYD_IGNORE_ERROR, &job->flags); + if (from) { job->source = *from; job->pages = NULL; @@ -746,6 +809,7 @@ int dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from, job->fn = fn; job->context = context; job->master_job = job; + job->write_ofst = 0; if (job->source.count <= SUB_JOB_SIZE) dispatch_job(job); diff --git a/include/linux/dm-kcopyd.h b/include/linux/dm-kcopyd.h index f486d63..cfac858 100644 --- a/include/linux/dm-kcopyd.h +++ b/include/linux/dm-kcopyd.h @@ -20,6 +20,7 @@ #define DM_KCOPYD_MAX_REGIONS 8 #define DM_KCOPYD_IGNORE_ERROR 1 +#define DM_KCOPYD_WRITE_SEQ 2 struct dm_kcopyd_throttle { unsigned throttle;