Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1346879rwe; Thu, 1 Sep 2022 17:22:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AdiwsfvVX5N7s/fx2O32nv4Iblq3F3ZiG6CLXUk/FxahitovtYPyO0BTuvjPCz51cwUAy X-Received: by 2002:a17:906:99c1:b0:6fe:b01d:134 with SMTP id s1-20020a17090699c100b006feb01d0134mr24900208ejn.598.1662078176695; Thu, 01 Sep 2022 17:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662078176; cv=none; d=google.com; s=arc-20160816; b=I9lvwGDBuLx9n4UmSfULFQBi2CNHMZd4sggVzTOwb0V/EvoPkBtxcLhFrvcwz9imdY bjTplNDqPvjRgTOEFborNKyjH1Wkjo+uAKmSlAmEEuYjSS3jiL5SH4fLFTZZel7eB3fI +InP+SBDX8DQvlAe/mT+qrKaLf+23W/tMda+D/JeWrh1q6VpSPezP1G3W9iq58y95kvo Z5JkxpcqRvndDsPflIptWSiaqQ+AT1ppWp2NMU9vV8/xS6JZjmE9vreddD1rtW7dy9Gl a8JMegIcCCMaA2FVyXAWVpq6DYhVy1opPRFHnnq/SNnfGAYWCaFsrr8nojHAIgLc+X3j mR0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/3zSW4akroZH3AEa4Ob/zy2W13gQovdXsrNdOSGyuxY=; b=qUBQ1ThP1Otyjj7SIaAgojXxfQEvDGf2UKN5bdPGBbB7qMILZ0Dkw/e6UK5LqATDz2 ceNs+z6PCpyMZ8S/08wfCciDukCZZ55s94zBqC64KRudrFd82tGjimDNwDGyaBOJ/j8y PSxrZjdRTpMPEVyy/9am2PjFfzvpesbb7d2DfFJWl3f/ybgcQ++vQNL5iUUVmsf3YVBx cHcWBP1r07+zkqYSv0upHxnyj/akdZKp52tUIFGodc2HbXrMCbjhXVOVRmlY82qLVBiu IUYRKIPxb7kFF9sAWZnWQP4UnpIVMyT5lrlrCzMbwNQD3RbnrJki6K6WHNPgHbRvzHfp AVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IT5ypTpD; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056402400e00b00447102675d6si350363eda.606.2022.09.01.17.22.31; Thu, 01 Sep 2022 17:22:56 -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=@redhat.com header.s=mimecast20190719 header.b=IT5ypTpD; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234042AbiIBAS2 (ORCPT + 99 others); Thu, 1 Sep 2022 20:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiIBASZ (ORCPT ); Thu, 1 Sep 2022 20:18:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E7279611 for ; Thu, 1 Sep 2022 17:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662077903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/3zSW4akroZH3AEa4Ob/zy2W13gQovdXsrNdOSGyuxY=; b=IT5ypTpDjatWfCCtAsZeoWDfj37WyH4b5U9iSD5bvBQ2/l8j6t4AH7Sfoz655aYk7OCfbM 3WzqaRGDCNUngNQYcUI72CO3buHMqKMoUY1IadFeocWN4LdVhQY0ncbyM5YKpg1BLCBBfn 7Nlxo29gY6BlI/brggVf6/CFvjDeBWM= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-454-pEEwYppQNHmXJgkI9w0eUA-1; Thu, 01 Sep 2022 20:18:22 -0400 X-MC-Unique: pEEwYppQNHmXJgkI9w0eUA-1 Received: by mail-qt1-f200.google.com with SMTP id h13-20020ac87d4d000000b00342f6c363afso411239qtb.9 for ; Thu, 01 Sep 2022 17:18:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=/3zSW4akroZH3AEa4Ob/zy2W13gQovdXsrNdOSGyuxY=; b=eYxjrBNsweJXwkUjhpZAWLyWwIqXERqSvya0aHBEwo23HtGUBiteb010nWyvuRd+wQ IF1YVc7O1sMpy3YhdtlqzR657MURYSBisFteX1gtNdsZf//s3udM9trBWshDcToj3fkZ ECSuuHnWUvjltMEWiGM38zSqg5mu8V2oAdNR0S2t0DRAfqywRC8UYrmlatwiNb3UQ3zn 7FZswd3RbhvMGRkhUu/tmtYAUCkEI38uf2KtdKH++dsPHjZ+iwo/RUFhS+Y4cb4jxqsN MwhXmGdP2gK/A3s/TPz45GFedJoV485C/z0HGG6I7VcOSumQmZULm8gcvVygs4afnjAX 2l6g== X-Gm-Message-State: ACgBeo0a/9N/41LHmIOzcHMzPNtQfDc+ioAhImJ6hjMaEjQq76JoUVlI hGB863QjvX3i9Dug1TR2jrh/HFG7pyAOjf6efzgL+dmXzLziTabE6gxc+jPW0iF0jO4p7F/0FjO vuXkWzD15YRqVNPbtNhMkVqM= X-Received: by 2002:ac8:58c6:0:b0:343:6ea4:c5d with SMTP id u6-20020ac858c6000000b003436ea40c5dmr25886994qta.371.1662077902202; Thu, 01 Sep 2022 17:18:22 -0700 (PDT) X-Received: by 2002:ac8:58c6:0:b0:343:6ea4:c5d with SMTP id u6-20020ac858c6000000b003436ea40c5dmr25886979qta.371.1662077902000; Thu, 01 Sep 2022 17:18:22 -0700 (PDT) Received: from localhost (pool-68-160-173-162.bstnma.fios.verizon.net. [68.160.173.162]) by smtp.gmail.com with ESMTPSA id bn5-20020a05620a2ac500b006bb41ac3b6bsm267782qkb.113.2022.09.01.17.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 17:18:21 -0700 (PDT) Date: Thu, 1 Sep 2022 20:18:20 -0400 From: Mike Snitzer To: Pankaj Raghav Cc: agk@redhat.com, snitzer@kernel.org, axboe@kernel.dk, damien.lemoal@opensource.wdc.com, hch@lst.de, bvanassche@acm.org, pankydev8@gmail.com, Johannes.Thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, dm-devel@redhat.com, gost.dev@samsung.com, jaegeuk@kernel.org, matias.bjorling@wdc.com Subject: Re: [PATCH v12 11/13] dm: call dm_zone_endio after the target endio callback for zoned devices Message-ID: References: <20220823121859.163903-1-p.raghav@samsung.com> <20220823121859.163903-12-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823121859.163903-12-p.raghav@samsung.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Aug 23 2022 at 8:18P -0400, Pankaj Raghav wrote: > dm_zone_endio() updates the bi_sector of orig bio for zoned devices that > uses either native append or append emulation, and it is called before the > endio of the target. But target endio can still update the clone bio > after dm_zone_endio is called, thereby, the orig bio does not contain > the updated information anymore. > > Currently, this is not a problem as the targets that support zoned devices > such as dm-zoned, dm-linear, and dm-crypt do not have an endio function, > and even if they do (such as dm-flakey), they don't modify the > bio->bi_iter.bi_sector of the cloned bio that is used to update the > orig_bio's bi_sector in dm_zone_endio function. > > This is a prep patch for the new dm-po2zone target as it modifies > bi_sector in the endio callback. > > Call dm_zone_endio for zoned devices after calling the target's endio > function. > > Signed-off-by: Pankaj Raghav Great patch header, explains the situation nicely. Reviewed-by: Mike Snitzer