Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4519843rwb; Wed, 17 Aug 2022 01:04:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DB4bI7gHPzRuF+kXb90Oo5UdgIh/5DHJY3RIGaO4ESq4cprt9G2oEtaN0Q4EnH179Xxhv X-Received: by 2002:a17:907:1611:b0:731:87dd:5eda with SMTP id hb17-20020a170907161100b0073187dd5edamr16355479ejc.148.1660723492415; Wed, 17 Aug 2022 01:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660723492; cv=none; d=google.com; s=arc-20160816; b=lx4U84V++J6K+kG3qVAPK70mWpY++tLj5pgVQGnGDslixykK1Ftmm14ClQnL3AcrX3 eDPRRyjWI3MPLVs+ZVhLva0WfVXDoJY1VhL2Qv1ysk4WAVibqwv6RY6CU1m7dH/aFzO2 qqUutLLsENNcmKBejZZO6RlrI7/69FDTH9XXCtflcXjb2aVai0lkOtyeshtGEpFJIMyi 8egZj5prlXlaK/OiPlANbjYnas6xYPmq6h7CDrxeu92XobNICcl6ki21GTm9QTO917aZ /WIj+fmJc7aGn1SYRrb7F8UHv7MTBqk3zwLR6CYK/WTNUTxXiFWVgWRLgKqwHIi9sRhg bHgQ== 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 :in-reply-to:content-language:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=RCMJ/sBC9tRTXd5pStdmRFTSefL5k27JvB4kPRdUH58=; b=BiulfhvZtJlUhZ/jMWaJzsVpQhi8buLloiI+NmAr3vP2GlP82zAA7RPOHGkUYhs6jf TffZwATf98CxnvvRd3kaOl7jE9uatng1MjqtFffMA6NyWVUcd7Yplj+iBe8QP+WKZwEL EaTccl/6d8yRNYL1vWYt/U8H+pHDX5ZeYDXYMMPPh/UOszzjmMfz3cM4bQE6J3XFYTtn I/HimrnT1BQ37CILUQEucxus4DMtN7UdQqfkF0VkIW7h1/3+DzkUCiNzYyuqOjQIifKh YO1S4pBNlDVZHTI8k2JQk2MWGpL7r/yfLMPm2qEEfhoCYeGDcmJAkXGhvP3UQclmZAX+ h0DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=r4gVqv9M; 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 ji2-20020a170907980200b00733e46f4543si12926602ejc.820.2022.08.17.01.04.24; Wed, 17 Aug 2022 01:04:52 -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=r4gVqv9M; 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 S232206AbiHQHgV (ORCPT + 99 others); Wed, 17 Aug 2022 03:36:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231910AbiHQHgF (ORCPT ); Wed, 17 Aug 2022 03:36:05 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF3C975CE7 for ; Wed, 17 Aug 2022 00:36:01 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220817073600euoutp02a9cd53b6a4d2273ccad02337f2f94963~MEaRyFQBC2984629846euoutp02v for ; Wed, 17 Aug 2022 07:36:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220817073600euoutp02a9cd53b6a4d2273ccad02337f2f94963~MEaRyFQBC2984629846euoutp02v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1660721760; bh=RCMJ/sBC9tRTXd5pStdmRFTSefL5k27JvB4kPRdUH58=; h=Date:From:Subject:To:CC:In-Reply-To:References:From; b=r4gVqv9MD3OAeG9yYzdlUE/Wnb2htUqFYdXNhDxC16+Wlhsum3Y2NMe1jxQ3rFEBw TOiA7Np5wlu+od7A4viyIE/EbQ/zLEplNpocmqDrXvEhE07kJtqzDGXd9hrqm6k8M4 JT0fzDV0uvgmMweIUtV4Ri1A7RTwTfzUT0pzorOE= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220817073600eucas1p235b8d8108a94d0d3fee28d981b5825d6~MEaRYmfyH0043600436eucas1p2N; Wed, 17 Aug 2022 07:36:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id DD.5A.10067.06A9CF26; Wed, 17 Aug 2022 08:36:00 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220817073559eucas1p2ab394166a038bb1a465409ed7abc2997~MEaQ5hExr3079230792eucas1p2b; Wed, 17 Aug 2022 07:35:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220817073559eusmtrp265c2a4659f1be7f3820043f28e2691bb~MEaQ4lPP60351603516eusmtrp2Z; Wed, 17 Aug 2022 07:35:59 +0000 (GMT) X-AuditID: cbfec7f4-dc1ff70000002753-fc-62fc9a6037df Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 91.E2.09038.F5A9CF26; Wed, 17 Aug 2022 08:35:59 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220817073559eusmtip2c9a7b2c77dfe9a6e218cc17fbe32b2c6~MEaQljAYK2156721567eusmtip2p; Wed, 17 Aug 2022 07:35:59 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.74) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 17 Aug 2022 08:35:56 +0100 Message-ID: Date: Wed, 17 Aug 2022 09:35:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: Pankaj Raghav Subject: Re: [PATCH v11 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes To: Damien Le Moal , , , , CC: , , , , , , , , , , , Damien Le Moal Content-Language: en-US In-Reply-To: <30790cae-5440-2447-a8b8-52a57fa16fa5@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.74] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIKsWRmVeSWpSXmKPExsWy7djPc7oJs/4kGSzfy2qx/tQxZovVd/vZ LKZ9+Mls8fvseWaL1vZvTBZ7381mtdizaBKTxcrVR5ksnqyfxWzxt+seUOKWtsXlXXPYLOYv e8puMaHtK7PFmptPWSxO3JJ2EPC4fMXbY+esu+wel8+Wemxa1cnmsXlJvcfumw1sHjtb77N6 vN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v xFKckWioxVxUnAgAngpcwasDAAA= X-CMS-MailID: 20220817073559eucas1p2ab394166a038bb1a465409ed7abc2997 X-Msg-Generator: CA X-RootMTR: 20220816131551eucas1p218faf35348e78a73aaa87d5477ecdb2e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220816131551eucas1p218faf35348e78a73aaa87d5477ecdb2e References: <20220816131536.189406-1-p.raghav@samsung.com> <20220816131536.189406-14-p.raghav@samsung.com> <30790cae-5440-2447-a8b8-52a57fa16fa5@opensource.wdc.com> 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,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Hi Damien, >> + */ >> +static bool bio_in_emulated_zone_area(struct dm_po2z_target *dmh, >> + struct bio *bio, int *offset) > > This function name reads like it is a block layer helper. It mat be less > confucing to keep using the dm_po2z_ prefix for it. > Good point. Even though it is a static function in the same file, it could be confused for a block helper at the caller site. >> +{ >> + /* >> + * Read operation on the emulated zone area (between zone capacity >> + * and zone size) will fill the bio with zeroes. Any other operation >> + >> + return DM_MAPIO_KILL; >> +} > Do you see any more issues apart from the two you pointed out?