From patchwork Fri Jan 6 08:33:10 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 13091072
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from vger.kernel.org (vger.kernel.org [23.128.96.18])
by smtp.lore.kernel.org (Postfix) with ESMTP id 159B7C54EBD
for ; Fri, 6 Jan 2023 08:34:10 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S232354AbjAFIdn (ORCPT );
Fri, 6 Jan 2023 03:33:43 -0500
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S232399AbjAFId0 (ORCPT
); Fri, 6 Jan 2023 03:33:26 -0500
Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com
[210.118.77.12])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5076E6ADAB
for ;
Fri, 6 Jan 2023 00:33:23 -0800 (PST)
Received: from eucas1p1.samsung.com (unknown [182.198.249.206])
by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id
20230106083320euoutp0211a1168dc25de148b89f32369f63f265~3qy3qmwmL2166021660euoutp02b
for ;
Fri, 6 Jan 2023 08:33:20 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com
20230106083320euoutp0211a1168dc25de148b89f32369f63f265~3qy3qmwmL2166021660euoutp02b
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1672994000;
bh=RdOD06wolOCIAicxPsN2ij6az3cOrx4wHkq03SQoR78=;
h=From:To:Cc:Subject:Date:References:From;
b=CnbydIeAviAlGIk4cryN6Fw9u2a2gZ9Iw0a93SdRj7VF9YeCgT35PvF/tzreEOVES
CQb6UDuLO5AS84fwM2MmltZ6MNGcmAx0iLJKscebUu0j6MQwWzPfoDxZUlIiIX+cR0
XHp6zWo+sj9EcW4Q//b9bmK3Bf9pjdTnFNJUkQ8E=
Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230106083319eucas1p2f07e06335cea133036a099678e5780c8~3qy2t7MAJ0992309923eucas1p26;
Fri, 6 Jan 2023 08:33:19 +0000 (GMT)
Received: from eucas1p2.samsung.com ( [182.198.249.207]) by
eusmges2new.samsung.com (EUCPMTA) with SMTP id 96.14.61936.FCCD7B36;
Fri, 6
Jan 2023 08:33:19 +0000 (GMT)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p1.samsung.com (KnoxPortal) with ESMTPA id
20230106083318eucas1p1a2ab71a95ab2906b4651538c63a94ae2~3qy2XZ6nJ1095210952eucas1p1E;
Fri, 6 Jan 2023 08:33:18 +0000 (GMT)
Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by
eusmtrp1.samsung.com (KnoxPortal) with ESMTP id
20230106083318eusmtrp1a6df33b9d2377ba20b7a7b965d6a9e93~3qy2Wlb9c2166121661eusmtrp1f;
Fri, 6 Jan 2023 08:33:18 +0000 (GMT)
X-AuditID: cbfec7f4-a2dff7000002f1f0-ce-63b7dccfbd0d
Received: from eusmtip1.samsung.com ( [203.254.199.221]) by
eusmgms1.samsung.com (EUCPMTA) with SMTP id E6.C6.23420.ECCD7B36;
Fri, 6
Jan 2023 08:33:18 +0000 (GMT)
Received: from localhost (unknown [106.210.248.66]) by eusmtip1.samsung.com
(KnoxPortal) with ESMTPA id
20230106083318eusmtip1a6555075bf69d5e8699929cba0a653cc~3qy2Gbyys0159601596eusmtip1O;
Fri, 6 Jan 2023 08:33:18 +0000 (GMT)
From: Pankaj Raghav
To: axboe@kernel.dk
Cc: kernel@pankajraghav.com, linux-kernel@vger.kernel.org,
hare@suse.de, bvanassche@acm.org, snitzer@kernel.org,
dm-devel@redhat.com, damien.lemoal@opensource.wdc.com,
linux-nvme@lists.infradead.org, hch@lst.de,
linux-block@vger.kernel.org, gost.dev@samsung.com,
Pankaj Raghav
Subject: [PATCH 0/7] block zoned cleanups
Date: Fri, 6 Jan 2023 09:33:10 +0100
Message-Id: <20230106083317.93938-1-p.raghav@samsung.com>
X-Mailer: git-send-email 2.25.1
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFjrMKsWRmVeSWpSXmKPExsWy7djP87rn72xPNth1gcdi9d1+NotpH34y
W/w+e57ZYu+72awWNw/sZLLYs2gSk8XK1UeZLM68/MxisfeWtsXlXXPYLOYve8pu8XlpC7vF
iVvSDrwel694e1w+W+qxaVUnm8fmJfUeu282sHnsbL3P6nF2paPH+31X2Tz6tqxi9Nh8utrj
8ya5AO4oLpuU1JzMstQifbsEroy1x8+zF3TwVNzZ0M7UwDiHs4uRk0NCwESi/30LWxcjF4eQ
wApGiYerW1lAEkICXxgl1s+CSnxmlDh/7gwbTMeZYxPZIRLLgRIrPrJCOC8YJV59nsnUxcjB
wSagJdHYyQ7SICIgLLG/A2QqFwezwGYmidu/1zKC1AgLaEr8fx4OYrIIqEo87LABKecVsJT4
2LeYBWKXvMTMS9/ZIeKCEidnPgGLMwPFm7fOZgYZKSHwg0Ni45d1UA0uEjsPXIKyhSVeHd/C
DmHLSJye3AMVr5Z4euM3VHMLo0T/zvVsIEdICFhL9J3JATGZgU5bv0sfotxRoufiUWaICj6J
G28FIU7gk5i0bTpUmFeio00IolpJYufPJ1BLJSQuN82BWuoh8WVFDxskaGMlWhb2Mk5gVJiF
5LFZSB6bhXDDAkbmVYziqaXFuempxUZ5qeV6xYm5xaV56XrJ+bmbGIHp7PS/4192MC5/9VHv
ECMTB+MhRgkOZiUR3rL+bclCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeWdsnZ8sJJCeWJKanZpa
kFoEk2Xi4JRqYFpTVC2lGbfpo8OmiQsl2ubM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SC1CKYPiYOTqkGplp7ptQXvK+UEyoSXVeY7BYU3nWe
KVXhSLfAvcNbKpsvHO7JO8B0YxJny4VFOWtevw1r7kn7UvzZ0/hWA0fuuunh76LmFj84qrXJ
a6dCYdDT71IbZ3StqeAXybj26q9xSEjLmqL/f2vMPrLv5WRXqotwjknYIuacW1bel55VZ2FU
b3T82jz21TfTf+d0CqwzeHbj8u7Pa1b931YvuODjl2Wvtd7OMb75Z/bDsAJxZs4/rulfO9MW
fAq+pjK55WxD5YVGg9/7+o3ZXt8omBUUzBHTOG335Vaz89Nv3zrTGibBY/JzDd//Rr7v+Rya
L3VEetNushrKTbrNvvPE6nvOvo4x+0P0FuudPxBw0DFURImlOCPRUIu5qDgRAD3Q8I9DAwAA
X-CMS-MailID: 20230106083318eucas1p1a2ab71a95ab2906b4651538c63a94ae2
X-Msg-Generator: CA
X-RootMTR: 20230106083318eucas1p1a2ab71a95ab2906b4651538c63a94ae2
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230106083318eucas1p1a2ab71a95ab2906b4651538c63a94ae2
References:
Precedence: bulk
List-ID:
X-Mailing-List: linux-block@vger.kernel.org
Hi Jens,
It is still unclear whether the support for non-po2 zone size devices
will be added anytime soon [1]. I have extracted out the cleanup
patches that doesn't do any functional change but improves the
readability by adding helpers. This also helps a bit to
maintain off-tree support as there is an interest to have this feature
in some companies.
I have retained the reviewed by tags for the commits that did not change
from the main patches I sent before[1].
[1] https://lore.kernel.org/lkml/20220923173618.6899-1-p.raghav@samsung.com/
Luis Chamberlain (1):
dm-zoned: ensure only power of 2 zone sizes are allowed
Pankaj Raghav (6):
block: remove superfluous check for request queue in bdev_is_zoned
block: add a new helper bdev_{is_zone_start, offset_from_zone_start}
nvmet: introduce bdev_zone_no helper
zonefs: use bdev_zone_no helper to calculate the zone index
dm-zone: use generic helpers to calculate offset from zone start
dm: call dm_zone_endio after the target endio callback for zoned
devices
block/blk-core.c | 2 +-
block/blk-zoned.c | 4 ++--
drivers/md/dm-zone.c | 8 +++-----
drivers/md/dm-zoned-target.c | 8 ++++++++
drivers/md/dm.c | 8 ++++----
drivers/nvme/target/zns.c | 3 +--
fs/zonefs/super.c | 8 +++-----
fs/zonefs/zonefs.h | 1 -
include/linux/blkdev.h | 28 +++++++++++++++++++++++-----
9 files changed, 45 insertions(+), 25 deletions(-)