Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5039060rwb; Wed, 17 Aug 2022 09:59:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xbLNfJUSjnpIyHu/c+Xq3qIYESq2454agbalyChAX6u5S24+BGsCLyJA3CThfV/qnCxqR X-Received: by 2002:a17:907:2714:b0:730:851d:66b1 with SMTP id w20-20020a170907271400b00730851d66b1mr16957875ejk.184.1660755591098; Wed, 17 Aug 2022 09:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660755591; cv=none; d=google.com; s=arc-20160816; b=XFlG0HA+I6Jt2OGmiAhEYDi8UKy08cqXseGgirc5kWU0YmfPco38Ru3hXpBxdX7Vjg UwWSuR2OOoBQovRNuEamYGYk8EsPiFB594oXI4JRB+8krMgK/Yk4vA4JpgCSy8vtazzu dFGhEC4co2vMO+RpzCOTyGT8jRYeXDsyNd5XL+hdkDvvip4UY5tpkaYGS9iBMNdJmJM4 zSYDPrY/siUbG6AtOLOpZVo3e4Bl3P6OdgDsV0ZeWgct5SmQ24FYFuAEJpqHPtr8VfNn RWf2qp+2G95rhZEr+I/DEFNpT6IJd3mhrl1NsnaJXYD8kdHlDlD0HEi5tcSxKLsAqDwb w0kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=kF6L5lBVEYEWO6HCovKa2gIExjDrBBg5oudOvILDX18=; b=rm5BGpeoW7wD47jH9I6Z7SiRHITbdywtNLPp5EQTBoSY9pOi8FUEIdCP026TZ7CRuY MegkHwdeHK+58sUeI3r5JRoTgFvyaL4Yw5Q2fuwqgyDLh6F43nHUU1fXkjih3dOY7ThU NkAfeKABrRBZAXDDw08rEwj734Pxq7WyJf+FFGklG1FcPN4qNEXBKXBYtGQ8cLX9QI8P p0avdvnFKOkURSIpIgJZ4wpG5M/oDe/P29nPUqrFlIktUFg1anI++DH0orwZOYZp5bux rR3WtTx5ehdJMvik79KEzIWKrhRLLTovR3AV2aWQLusy1xPcFZuTrTsSmpUbOVvTcz1B EdSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Xz7nYeL3; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=m9BkyA42; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a056402230200b00441267a2a41si11500637eda.292.2022.08.17.09.59.24; Wed, 17 Aug 2022 09:59:51 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Xz7nYeL3; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=m9BkyA42; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240790AbiHQQLD (ORCPT + 99 others); Wed, 17 Aug 2022 12:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240936AbiHQQKW (ORCPT ); Wed, 17 Aug 2022 12:10:22 -0400 Received: from esa1.hgst.iphmx.com (esa1.hgst.iphmx.com [68.232.141.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697883A4B8 for ; Wed, 17 Aug 2022 09:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1660752619; x=1692288619; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=tGXL1veMClRR6J6COmjOo7zqJDj1I9afT5K0DiyexSs=; b=Xz7nYeL3PSf3lLgiGCeJz9UcofjvxzWAcsr/NlPDXJ9A/UZ7kNpvX9fW XYDkQN6jdTUNXuTI5tr9b4/kYVc6ISfx2J7e7da5c0HQBfpfAcrIfEk6x QVoTmu1fYJbnKO+C7l70+GoxDQ3rSrH1zhZaHoEfHMk1BM282n03kISPm BVa4b2/20GCOZKjrKJEqS35tLrglDtRrF+bWaLA4RkdLJUL3JeGh4rWE8 buhtDzZ4WAizHn9u90GzZatyQWDHbKz06MKgjsXk/F4WjtZaccgiNicXx IONrz/3B8PUea7mdFqQokxdFerTNy+9RIqfZi9OnfpG4CM+Fv3ZgHfl+r w==; X-IronPort-AV: E=Sophos;i="5.93,243,1654531200"; d="scan'208";a="321047340" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 18 Aug 2022 00:10:18 +0800 IronPort-SDR: bgHc6JvATVXzyccdnMLLtfMHPvkyzApdZV/NS9qrCodvzvBf774yy9f/rh3MYwydCuqEbeOci+ NBBO/qLK9ssMDKeR92oYiSWeyflMgujR/JTAO8eesSc1TY6bDUJc69k8A2p+Sb86MDuK2LRg2Q jWP1+WhAEmy+UuK5qN5fdWultaB4NkzwoQiosVmstmCMTFJ3I8sR7sv705pvorCzYFTnY860Nv La2KMAYc6Rq1kkkWn4UH6SlpEb5GFY791yvMSIi2JqJCI3Aqel8PvlV3xT3ezBhoSwyNCSPDtA j5yvgwR/9zRuLUsSbM6VDFNp Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 17 Aug 2022 08:31:05 -0700 IronPort-SDR: UjvUO8HsL+dFez2gq+eM9ig0lS5nxJ3LHoiEtgZFiPHKRaBp0Un34yCpzJMPVMgk5gUfboXeuf iFc4up/PH6YS8SSzifXlXHlS7j5rzw/2mlk7DYvN4T3ge2Lacm1DGgtUVzDdYT93tkscQMG7Y+ ySAE/b6JFf9nBbhrLxoCVw6PrR2M/rBnT//zPwOhkAklJ/4fWBxpMyW0ZV14ojTmkhthO+rH37 Bbr33GX203yHJcQdvRGR96sHUZtsWq2MfburjCMdEn7kmnd7OEr+4W8t6Loa1Sat3JApBmQiPH CD0= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 17 Aug 2022 09:10:19 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4M7CfL25Zyz1Rws9 for ; Wed, 17 Aug 2022 09:10:18 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1660752617; x=1663344618; bh=tGXL1veMClRR6J6COmjOo7zqJDj1I9afT5K 0DiyexSs=; b=m9BkyA42lhKQOlCHS75npA6KAXx1QnGZcXPa+ScENhVWJDJNb7B CA4xAIg2JLIQh1qDtAFUfRAdEgicNU7AzvGl1UX407LVeNHE65d+ytCK6hieUVyP GfegZ1iiJLB6FcIM+/XCOJO7XUf2WX7xe7nJat0qikxM2uttvMxMvTRO3z7r6ERf ywpSS5GyDiYyH5Of0AxXUKuEzNQGyHY+oEQHV1sxk6T1Gk/2q/GT7quFCU/K4TUD dfYtsC3MKMsJlsS/IgqSjBoNzukrcw9g15hSBhwy2cI7TC86JIrtSHtbDD025sK3 K8pihhaJ2GB2m9/g249orQLFyIo8N6bv99w== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mgY6Xd4oulnL for ; Wed, 17 Aug 2022 09:10:17 -0700 (PDT) Received: from [10.11.46.122] (unknown [10.11.46.122]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4M7CfJ44Fbz1RtVk; Wed, 17 Aug 2022 09:10:16 -0700 (PDT) Message-ID: <840ce5cf-32d5-d694-cb79-2df871a607c9@opensource.wdc.com> Date: Wed, 17 Aug 2022 09:10:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v11 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes Content-Language: en-US To: Pankaj Raghav , axboe@kernel.dk, snitzer@kernel.org, hch@lst.de, agk@redhat.com Cc: pankydev8@gmail.com, gost.dev@samsung.com, matias.bjorling@wdc.com, hare@suse.de, bvanassche@acm.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com, linux-nvme@lists.infradead.org, jaegeuk@kernel.org, Johannes.Thumshirn@wdc.com, linux-block@vger.kernel.org, Damien Le Moal References: <20220816131536.189406-1-p.raghav@samsung.com> <20220816131536.189406-14-p.raghav@samsung.com> <30790cae-5440-2447-a8b8-52a57fa16fa5@opensource.wdc.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 2022/08/17 0:35, Pankaj Raghav wrote: > 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? nope -- Damien Le Moal Western Digital Research