Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1354772rwl; Wed, 29 Mar 2023 16:55:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bulW27//8dtkD7CZBToovXoWoAv1S2xUXXJW2gwv+I1Q1ix9Sgm6+mksL4VuwtKOelchb0 X-Received: by 2002:a17:907:1612:b0:931:88e8:d470 with SMTP id hb18-20020a170907161200b0093188e8d470mr26695536ejc.23.1680134108470; Wed, 29 Mar 2023 16:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680134108; cv=none; d=google.com; s=arc-20160816; b=NqhyvWH7xFYoKMCuBQr27Ys4sRKmcsgbnlSUJduxYzOBViJXwYi29S7oEde/CmdSTW 4G1Kio22RaqfAXv7CDPeDEPpIzp0MoyKrY2j4ca93yyYiKwC1c6zCwh2bUMwZ0gHKiqN 8or5E6evVwGiscrAc3jI3fzYprewepkbUHVgYCbltYH9TIL3xW/6nD4uBsGyLvSp6Zn3 /VVNl7Gjkp9YmXiH+C8QVliWILU0rwYKmVKtj8dS05wkyLIQwOKPdX/ws6/6Ou6Y4xPC O6uxDFxwssSVJZExdpA0uXN7cQMFcrrIzhaMH0kKw/T+XGhM0IdkX98WpwUjwpJqYtku vvmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gEoRfunyWkfn8UDHjcKiB32JdiqdiH8r0lrFok40HYM=; b=tw46LenRh5L7SQep1kLjFTu+SVs79BqRl/UBxdpTEW2fsmnuBCWKl3eyEwrZh4/J8L +wk27LtF/kPas8NxQ90ctMPgRSnCM+IG47d6s2fTONyJQgtqBicnP4ebOOXzTRxx3USb UYGnzxfo7YSXZ1aQIfIINLz4gBmfkfbyu4DVs8tLBSREnh6lOJwyogmiaxeVyZyXTl/v fMMcdaOaIr+HqRiykT13zStUzHfjc/zRwFEKCs0WYLSOFPYklSFPHiwbv44VnUPPmHTo YqQk17k0a6h+ektHjOojfYcFUdB62/SOF5PW0pWa6f9eDmAvBzwxr8zy1clikHg70eCK +3+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a170906341700b0092fb53524afsi33688393ejb.39.2023.03.29.16.54.42; Wed, 29 Mar 2023 16:55:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231276AbjC2Xx3 (ORCPT + 99 others); Wed, 29 Mar 2023 19:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbjC2Xx2 (ORCPT ); Wed, 29 Mar 2023 19:53:28 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF091FD2; Wed, 29 Mar 2023 16:53:27 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id EB2DC68C7B; Thu, 30 Mar 2023 01:53:22 +0200 (CEST) Date: Thu, 30 Mar 2023 01:53:22 +0200 From: Christoph Hellwig To: Pankaj Raghav Cc: Matthew Wilcox , Christoph Hellwig , martin@omnibond.com, axboe@kernel.dk, minchan@kernel.org, akpm@linux-foundation.org, hubcap@omnibond.com, viro@zeniv.linux.org.uk, senozhatsky@chromium.org, brauner@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, mcgrof@kernel.org, linux-block@vger.kernel.org, gost.dev@samsung.com, linux-mm@kvack.org, devel@lists.orangefs.org Subject: Re: [PATCH 1/5] zram: remove the call to page_endio in the bio end_io handler Message-ID: <20230329235322.GA1891@lst.de> References: <20230328112716.50120-1-p.raghav@samsung.com> <20230328112716.50120-2-p.raghav@samsung.com> <5865a840-cb5e-ead1-f168-100869081f84@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5865a840-cb5e-ead1-f168-100869081f84@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE 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 On Tue, Mar 28, 2023 at 06:17:11PM +0200, Pankaj Raghav wrote: > >> if (!parent) > >> - bio->bi_end_io = zram_page_end_io; > >> + bio->bi_end_io = zram_read_end_io; > > > > Can we just do: > > > > if (!parent) > > bio->bi_end_io = bio_put; > > > > Looks neat. I will wait for Christoph to comment whether just a bio_put() call > is enough in this case for non-chained bios before making this change for the > next version. It is enough in the sense of keeping the previous behavior there. It is not enough in the sense that the code is still broken as the callers is never notified of the read completion. So I think for the purpose of your series we're fine and can go ahead with this version for now. > > Thanks. ---end quoted text---