Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3658038rwb; Tue, 20 Sep 2022 02:50:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6iP4QglLkAu47Ks3TYJWjOUE5oiDjINyzZNbHQs1x/s0QgCk/w88u0Pu7roFT5Sf4pwrN2 X-Received: by 2002:aa7:d883:0:b0:44e:bbbe:d661 with SMTP id u3-20020aa7d883000000b0044ebbbed661mr19184011edq.248.1663667454292; Tue, 20 Sep 2022 02:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663667454; cv=none; d=google.com; s=arc-20160816; b=kD2N1vs2iX/9eDiba8rE50hSz+jR8AEHF/sHcF+HZMuIx8iYCgoL/W+Fl9/PKIBvbp CGYGKgL/iZuhJ0xQ4FjTz6PX+a22k5NWcxjxdprzrXTpeJ4OPA+UzGmu7qrs8yY7kueE H3+caCWOZOkn+mZOQRJZBNDbhs4gScAsynj2GLFG9lpy31g9ZWmYPBtih0PVQReRK291 RlA2hb8DbNXBKpdM9oLAlQeFWXxh4mjUyhKmlS72CjV3BIGYYYe7MAwdPVvao183f/qr 1n6ECi+yfdvW4yvDLwt9tW3XcdL8Lmq1VH/KOfp4SaPlG5SW2//TYkY5fKGpLT/s58dk dH8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=N3qFK9weXl0mCmr9wr+Xadw874Z9Jf81CL9SWOgNWZw=; b=0YH1UGHdPog6X+GzIKsyVeYMsMSJNio/ZW7jHFzCyUhrPWPoBUk4PxqbThXeBDYfdu syQ/EEppGjXLwrB5SYD/BqyDycAPxtIGcYSltdgpdFuUtmuH3WtgWonD5fT1YMFMb3Dk WYekm8nvkRMTuvRpfJcQUb1t7nDVgjKS6Ch9syZrzobR4f0N9Qr5Woj+fIHvVeYrAQ0p OU/NzZ5f/fyotlOSnH7G3wo+UgIwiCcpCyg7uFsQ8JNFJYv5jFPsHnCNwJOgc5IsbIGk uAfE+RVPIEIxkIXvf9ir/KuRuekhQYc95eCc5LwkRHOpKqBXZMv0lgiY5dUYBAdlUuPb XnGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=gyB+tIY5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb8-20020a0564020d0800b0044e6731ad3esi1441127edb.400.2022.09.20.02.50.27; Tue, 20 Sep 2022 02:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=gyB+tIY5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbiITJLf (ORCPT + 99 others); Tue, 20 Sep 2022 05:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231460AbiITJLb (ORCPT ); Tue, 20 Sep 2022 05:11:31 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E22BE5E561 for ; Tue, 20 Sep 2022 02:11:25 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220920091122euoutp01e0e188c97b632939c43e0f2d5679b3cc~WhpQKYZWG1136111361euoutp010 for ; Tue, 20 Sep 2022 09:11:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220920091122euoutp01e0e188c97b632939c43e0f2d5679b3cc~WhpQKYZWG1136111361euoutp010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1663665082; bh=N3qFK9weXl0mCmr9wr+Xadw874Z9Jf81CL9SWOgNWZw=; h=From:To:Cc:Subject:Date:References:From; b=gyB+tIY5U9rc6IBZblU1EOuhH2Xf6EiGKUcJkIXAD0U6bTsi/w6TmpCvZ3QmSH50K Mjh7e0P0CMWL1QUrf2HRJZMM83l54AZNeir5pCKDAere1IDYiORlHfzK8DUN9orCSb WPeVprAMPxED/pWuw2OEaj/4k1EsvVlOdExzuvCY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220920091120eucas1p11dffb27c44a8fbfe48f24eab63e46553~WhpOVymD32913329133eucas1p1k; Tue, 20 Sep 2022 09:11:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E3.7E.07817.8B389236; Tue, 20 Sep 2022 10:11:20 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220920091120eucas1p2c82c18f552d6298d24547cba2f70b7fc~WhpNzRUiF1326413264eucas1p2E; Tue, 20 Sep 2022 09:11:20 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220920091120eusmtrp11d079d4ec14c363dbc6b4c4bc89be3e5~WhpNyUClc0149701497eusmtrp1Y; Tue, 20 Sep 2022 09:11:20 +0000 (GMT) X-AuditID: cbfec7f4-8abff70000011e89-0a-632983b81a01 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8B.43.10862.8B389236; Tue, 20 Sep 2022 10:11:20 +0100 (BST) Received: from localhost (unknown [106.210.248.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220920091119eusmtip2affa7e4fb0b83dd7e244c3a24aed8d8f~WhpNbdwPE3041630416eusmtip2y; Tue, 20 Sep 2022 09:11:19 +0000 (GMT) From: Pankaj Raghav To: agk@redhat.com, snitzer@kernel.org, axboe@kernel.dk, damien.lemoal@opensource.wdc.com, hch@lst.de Cc: gost.dev@samsung.com, jaegeuk@kernel.org, Johannes.Thumshirn@wdc.com, hare@suse.de, bvanassche@acm.org, dm-devel@redhat.com, matias.bjorling@wdc.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, pankydev8@gmail.com, linux-block@vger.kernel.org, Pankaj Raghav Subject: [PATCH v14 00/13] support zoned block devices with non-power-of-2 zone sizes Date: Tue, 20 Sep 2022 11:11:06 +0200 Message-Id: <20220920091119.115879-1-p.raghav@samsung.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7djP87o7mjWTDf7N1LBYf+oYs8Xqu/1s FtM+/GS2+H32PLPF3nezWS1uHtjJZLFn0SQmi5WrjzJZPFk/i9nib9c9Jou9t7QtLu+aw2Yx f9lTdosJbV+ZLT4vbWG3WHPzKYvFiVvSDoIel694e+ycdZfd4/LZUo9NqzrZPDYvqffYfbOB zWNn631Wj/f7rrJ59G1Zxeix+XS1x+dNch7tB7qZAniiuGxSUnMyy1KL9O0SuDJ2HJjGWrAs qqJlVgd7A+Ne1y5GTg4JAROJ9/3NrF2MXBxCAisYJR7uXsYM4XxhlLizbwNU5jOjxOTtDxlh WtbOPARVtZxRYs70g1DOS0aJ7jtngao4ONgEtCQaO9lBGkQE0iW+ft3ACFLDLLCNSWL6lEXM IDXCAuESCz/ZgdSwCKhKLFo+jQXE5hWwkrg6YRsTxDJ5iZmXvrNDxAUlTs58AlbDDBRv3job bK+EwGJOifVzz0E1uEjc3f2dDcIWlnh1fAs7hC0jcXpyDwuEXS3x9MZvqOYWRon+nevZQA6S ELCW6DuTA2IyC2hKrN+lD1HuKPHw7RJmiAo+iRtvBSFO4JOYtG06VJhXoqNNCKJaSWLnzydQ SyUkLjfNYYEo8ZCYNi8WJCwkECvxdudGpgmMCrOQ/DULyV+zEE5YwMi8ilE8tbQ4Nz212Cgv tVyvODG3uDQvXS85P3cTIzAJnv53/MsOxuWvPuodYmTiYDzEKMHBrCTC2+KvmSzEm5JYWZVa lB9fVJqTWnyIUZqDRUmcNzlzQ6KQQHpiSWp2ampBahFMlomDU6qByX53kHSLwruLC0r8hGZd ff39546EDaK6tQsOsQvMYFi44979DG9LQ/YjEayiijsD1Tuib05P/bFDvJRxg2bgPgcLsWWS 5puWBFz17FrxVqxGv9Kz7IvI2ZAnXeJSPAX3GQ7/ZlLQ+cHy/tgypbgjm6fyOO2Q6jv349Rb 03Nhem9CRNqnxO7yDzN/yP7T4YDBj7NTZj6/8vFkbfcuc6/CG2HRu5Y5y1tzZDme22HVp9h4 5pn4k6nTT9gK/vXf0tS6e23eQq1zvyKfpFcozdY9by98c+oq9hXVeRv3uOXF/jR91bV8ZZnR xccHAjUm73nWsCI5pltQ6Cz7nf1iRSnMZqfu2TXN81imwc4+SVdqohJLcUaioRZzUXEiAK2m SZ3xAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDIsWRmVeSWpSXmKPExsVy+t/xe7o7mjWTDea/YLVYf+oYs8Xqu/1s FtM+/GS2+H32PLPF3nezWS1uHtjJZLFn0SQmi5WrjzJZPFk/i9nib9c9Jou9t7QtLu+aw2Yx f9lTdosJbV+ZLT4vbWG3WHPzKYvFiVvSDoIel694e+ycdZfd4/LZUo9NqzrZPDYvqffYfbOB zWNn631Wj/f7rrJ59G1Zxeix+XS1x+dNch7tB7qZAnii9GyK8ktLUhUy8otLbJWiDS2M9Awt LfSMTCz1DI3NY62MTJX07WxSUnMyy1KL9O0S9DJ2HJjGWrAsqqJlVgd7A+Ne1y5GTg4JAROJ tTMPMXcxcnEICSxllNh34hULREJC4vbCJkYIW1jiz7UuNoii54wSfecus3cxcnCwCWhJNHay g9SICORKHN48gQnEZhY4wiSxeGoMiC0sECoxZ917sJksAqoSi5ZPA7N5Bawkrk7YxgQxX15i 5qXvYCOZBTQl1u/ShygRlDg58wkLxEh5ieats5knMPLPQqiahaRqFpKqBYzMqxhFUkuLc9Nz i430ihNzi0vz0vWS83M3MQKjdduxn1t2MK589VHvECMTB+MhRgkOZiUR3hZ/zWQh3pTEyqrU ovz4otKc1OJDjKZAV09klhJNzgemi7ySeEMzA1NDEzNLA1NLM2MlcV7Pgo5EIYH0xJLU7NTU gtQimD4mDk6pBqZq1gqjC/Mzvp0+JMvZ9Xp25t9Yx2Uca6S97W/1/Py/pnOGzh3uy7fEi0R8 /9eobJeVSrKbpnBb1161bPojFhVuDtuDt9aFTzv+cXINc3b9FzvLrs6a56WsS2ZM/L1+so/C k5vvD1Un5bDqzk/ZsKdYbudWtv7AX85n8rLcJ0wwOZJRlViZ4F/BrNbkKipt/in5TcI8b/XK 48vkZn7M2Vv3+orXgnrHvYmn+r+9yX51dfXZMiXZzZ9v5WkLnQ63zmvQ2dY3q7/3QKCpULO6 T4poNb/y0flvn83tYX/sfp7jRqlole3nqoeBHh5PKl2yN05YxBqg/i8ukp0/tI1TfkrN9dvx X1uSGP5PP/zDUYmlOCPRUIu5qDgRAEo6oypfAwAA X-CMS-MailID: 20220920091120eucas1p2c82c18f552d6298d24547cba2f70b7fc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20220920091120eucas1p2c82c18f552d6298d24547cba2f70b7fc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220920091120eucas1p2c82c18f552d6298d24547cba2f70b7fc References: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Background and Motivation: The zone storage implementation in Linux, introduced since v4.10, first targetted SMR drives which have a power of 2 (po2) zone size alignment requirement. The po2 zone size was further imposed implicitly by the block layer's blk_queue_chunk_sectors(), used to prevent IO merging across chunks beyond the specified size, since v3.16 through commit 762380ad9322 ("block: add notion of a chunk size for request merging"). But this same general block layer po2 requirement for blk_queue_chunk_sectors() was removed on v5.10 through commit 07d098e6bbad ("block: allow 'chunk_sectors' to be non-power-of-2"). NAND, which is the media used in newer zoned storage devices, does not naturally align to po2. In these devices, zone capacity(cap) is not the same as the po2 zone size. When the zone cap != zone size, then unmapped LBAs are introduced to cover the space between the zone cap and zone size. po2 requirement does not make sense for these type of zone storage devices. This patch series aims to remove these unmapped LBAs for zoned devices when zone cap is npo2. This is done by relaxing the po2 zone size constraint in the kernel and allowing zoned device with npo2 zone sizes if zone cap == zone size. Removing the po2 requirement from zone storage should be possible now provided that no userspace regression and no performance regressions are introduced. Stop-gap patches have been already merged into f2fs-tools to proactively not allow npo2 zone sizes until proper support is added [1]. There were two efforts previously to add support to npo2 devices: 1) via device level emulation [2] but that was rejected with a final conclusion to add support for non po2 zoned device in the complete stack[3] 2) adding support to the complete stack by removing the constraint in the block layer and NVMe layer with support to btrfs, zonefs, etc which was rejected with a conclusion to add a dm target for FS support [0] to reduce the regression impact. This series adds support to npo2 zoned devices in the block and nvme layer and a new **dm target** is added: dm-po2zoned-target. This new target will be initially used for filesystems such as btrfs and f2fs until native npo2 zone support is added. - Patchset description: Patches 1-3 deals with removing the po2 constraint from the block layer. Patches 4-5 deals with removing the constraint from nvme zns. Patch 5 removes the po2 contraint in null blk Patch 6 adds npo2 support to zonefs Patches 7-13 adds support for npo2 zoned devices in the DM layer and adds a new target dm-po2zoned-target which converts a zoned device with npo2 zone size into a zoned target with po2 zone size. The patch series is based on linux-next tag: next-20220919 Testing: The new target was tested with blktest and zonefs test suite in qemu and on a real ZNS device with npo2 zone size. Performance Measurement on a null blk: Device: zone size = 128M, blocksize=4k FIO cmd: fio --name=zbc --filename=/dev/nullb0 --direct=1 --zonemode=zbd --size=23G --io_size= --ioengine=io_uring --iodepth= --rw= --bs=4k --loops=4 The following results are an average of 4 runs on AMD Ryzen 5 5600X with 32GB of RAM: Sequential Write: x-----------------x---------------------------------x---------------------------------x | IOdepth | 8 | 16 | x-----------------x---------------------------------x---------------------------------x | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | x-----------------x---------------------------------x---------------------------------x | Without patch | 578 | 2257 | 12.80 | 576 | 2248 | 25.78 | x-----------------x---------------------------------x---------------------------------x | With patch | 581 | 2268 | 12.74 | 576 | 2248 | 25.85 | x-----------------x---------------------------------x---------------------------------x Sequential read: x-----------------x---------------------------------x---------------------------------x | IOdepth | 8 | 16 | x-----------------x---------------------------------x---------------------------------x | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | x-----------------x---------------------------------x---------------------------------x | Without patch | 667 | 2605 | 11.79 | 675 | 2637 | 23.49 | x-----------------x---------------------------------x---------------------------------x | With patch | 667 | 2605 | 11.79 | 675 | 2638 | 23.48 | x-----------------x---------------------------------x---------------------------------x Random read: x-----------------x---------------------------------x---------------------------------x | IOdepth | 8 | 16 | x-----------------x---------------------------------x---------------------------------x | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | x-----------------x---------------------------------x---------------------------------x | Without patch | 522 | 2038 | 15.05 | 514 | 2006 | 30.87 | x-----------------x---------------------------------x---------------------------------x | With patch | 522 | 2039 | 15.04 | 523 | 2042 | 30.33 | x-----------------x---------------------------------x---------------------------------x Minor variations are noticed in Sequential write with io depth 8 and in random read with io depth 16. But overall no noticeable differences were noticed [0] https://lore.kernel.org/lkml/PH0PR04MB74166C87F694B150A5AE0F009BD09@PH0PR04MB7416.namprd04.prod.outlook.com/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?h=dev-test&id=6afcf6493578e77528abe65ab8b12f3e1c16749f [2] https://lore.kernel.org/all/20220310094725.GA28499@lst.de/T/ [3] https://lore.kernel.org/all/20220315135245.eqf4tqngxxb7ymqa@unifi/ Changes since v1: - Put the function declaration and its usage in the same commit (Bart) - Remove bdev_zone_aligned function (Bart) - Change the name from blk_queue_zone_aligned to blk_queue_is_zone_start (Damien) - q is never null in from bdev_get_queue (Damien) - Add condition during bringup and check for zsze == zcap for npo2 drives (Damien) - Rounddown operation should be made generic to work in 32 bits arch (bart) - Add comments where generic calculation is directly used instead having special handling for po2 zone sizes (Hannes) - Make the minimum zone size alignment requirement for btrfs to be 1M instead of BTRFS_STRIPE_LEN(David) Changes since v2: - Minor formatting changes Changes since v3: - Make superblock mirror align with the existing superblock log offsets (David) - DM change return value and remove extra newline - Optimize null blk zone index lookup with shift for po2 zone size Changes since v4: - Remove direct filesystems support for npo2 devices (Johannes, Hannes, Damien) Changes since v5: - Use DIV_ROUND_UP* helper instead of round_up as it breaks 32bit arch build in null blk(kernel-test-robot, Nathan) - Use DIV_ROUND_UP_SECTOR_T also in blkdev_nr_zones function instead of open coding it with div64_u64 - Added extra condition in dm-zoned and in dm to reject non power of 2 zone sizes. Changes since v6: - Added a new dm target for non power of 2 devices - Added support for non power of 2 devices in the DM layer. Changes since v7: - Improved dm target for non power of 2 zoned devices with some bug fixes and rearrangement - Removed some unnecessary comments. Changes since v8: - Rename dm-po2z to dm-po2zone - set max_io_len for the target to po2 zone size sector - Simplify dm-po2zone target by removing some superfluous conditions - Added documentation for the new dm-po2zone target - Change pr_warn to pr_err for critical errors - Split patch 2 and 11 with their corresponding prep patches - Minor spelling and grammatical improvements Changes since v9: - Add a check for a zoned device in dm-po2zone ctr. - Rephrased some commit messages and documentation for clarity Changes since v10: - Simplified dm_poz_map function (Damien) Changes since v11: - Rename bio_in_emulated_zone_area and some formatting adjustments (Damien) Changes since v12: - Changed the name from dm-po2zone to dm-po2zoned to have a common naming convention for zoned devices(Mike) - Return directly from the dm_po2z_map function instead of having returns from different functions (Mike) - Change target type to target feature flag in commit header (Mike) - Added dm_po2z_status function and NOWAIT flag to the target - Added some extra information to the target's documentation. Changes since v13: - Use goto for cleanup in dm-po2zoned target (Mike) - Added dtr to dm-po2zoned target - Expose zone capacity instead of po2 zone size for DMSTATUS_TYPE_INFO(Mike) Luis Chamberlain (1): dm-zoned: ensure only power of 2 zone sizes are allowed Pankaj Raghav (12): block: make bdev_nr_zones and disk_zone_no generic for npo2 zone size block: rearrange bdev_{is_zoned,zone_sectors,get_queue} helper in blkdev.h block: allow blk-zoned devices to have non-power-of-2 zone size nvmet: Allow ZNS target to support non-power_of_2 zone sizes nvme: zns: Allow ZNS drives that have non-power_of_2 zone size null_blk: allow zoned devices with non power-of-2 zone sizes zonefs: allow non power of 2 zoned devices dm-zone: use generic helpers to calculate offset from zone start dm-table: allow zoned devices with non power-of-2 zone sizes dm: call dm_zone_endio after the target endio callback for zoned devices dm: introduce DM_EMULATED_ZONES target feature flag dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes .../admin-guide/device-mapper/dm-po2zoned.rst | 79 +++++ .../admin-guide/device-mapper/index.rst | 1 + block/blk-core.c | 2 +- block/blk-zoned.c | 37 ++- drivers/block/null_blk/main.c | 5 +- drivers/block/null_blk/null_blk.h | 1 + drivers/block/null_blk/zoned.c | 18 +- drivers/md/Kconfig | 10 + drivers/md/Makefile | 2 + drivers/md/dm-po2zoned-target.c | 291 ++++++++++++++++++ drivers/md/dm-table.c | 20 +- drivers/md/dm-zone.c | 8 +- drivers/md/dm-zoned-target.c | 8 + drivers/md/dm.c | 8 +- drivers/nvme/host/zns.c | 14 +- drivers/nvme/target/zns.c | 3 +- fs/zonefs/super.c | 6 +- fs/zonefs/zonefs.h | 1 - include/linux/blkdev.h | 80 +++-- include/linux/device-mapper.h | 9 + 20 files changed, 528 insertions(+), 75 deletions(-) create mode 100644 Documentation/admin-guide/device-mapper/dm-po2zoned.rst create mode 100644 drivers/md/dm-po2zoned-target.c -- 2.25.1