Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp416323rwl; Thu, 30 Mar 2023 18:45:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Zi2kGw5Q5PMm8wgqFfUxcWIv9/z5KLL+qZ5Wym4nGd9gUcFVieuWRoiwm+DXb42lTQ3zgh X-Received: by 2002:a05:6402:268e:b0:502:465:28d4 with SMTP id w14-20020a056402268e00b00502046528d4mr4519906edd.1.1680227105871; Thu, 30 Mar 2023 18:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680227105; cv=none; d=google.com; s=arc-20160816; b=k+Sj9lrr/PsQWIs3Nqs+Lllz8QcF8e+rsigAx3Bz546gEP0YMdKf+1ts4fA9KGIloC uXdAXFqwe7DBu5KQEQ3jT1+inM9oEonYC7iyeFiCk9VMviWQP5iSouZiQdQNabJAx4/Z 6ksUaJ9Ff2xTQKrbAQ+flZ3d9qBR6IGP0qu5pIPeM36YqG8WPsTod5mEoZiS/XQ7S1mf bh6SL+zz0P0y/KmUtLvJOb6lhz0ebGdnN3uHGleuN55X3WSsn/jSgHEMMrBMPRH8+s8i /SGEYVLwOGsgQGYzc6cKt7jGHoPkmJeDsmHiWJSXcX/YaHk1fGgduM8OQ5K1dryvEC5x Xj7w== 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:sender:dkim-signature; bh=Tfm+hbs/jl6LALmLyvo0+JGmZiFpCrqmfVmO3EjPG/U=; b=F/kScKlK+ixw1nUy/mnmmuYdLXg7e4N8VJzOTldB9Mg22A5BnjaZ2nBzJPr7Aasr7d +DJ6k0M7QHI4n4QAqn0OrdQq95OdTNqL4YRiuzKH1li8up9KMuO+0dPJLrrl7QuucFC6 c8zH83V7R9SXd/j4GqSMVqoPpo97O+PHA2u1VZCu5amanyJ14nmyD39cSB1IWIQ+djg6 qPbtdDD2KAK3R8eXnMdCkzq0u9k85+7SIK+Bbr5n4x9W3b9k6MVNL5ked8NZqYNEc6aQ /Usk8cNTvEgM+u1X5+Au5MF49JR3jDvDXc2OrsB13/qEB9wTGVSUuDGYUL+CQvKphdxT 5i1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TrpXzdzR; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by14-20020a0564021b0e00b00501e59e6198si954333edb.613.2023.03.30.18.44.36; Thu, 30 Mar 2023 18:45:05 -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=@gmail.com header.s=20210112 header.b=TrpXzdzR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjCaBmo (ORCPT + 99 others); Thu, 30 Mar 2023 21:42:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjCaBmn (ORCPT ); Thu, 30 Mar 2023 21:42:43 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7CDEB72; Thu, 30 Mar 2023 18:42:42 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id iw3so19865885plb.6; Thu, 30 Mar 2023 18:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680226962; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Tfm+hbs/jl6LALmLyvo0+JGmZiFpCrqmfVmO3EjPG/U=; b=TrpXzdzRu5jUI7LHqyu7stpCOlAN1ukTs0SqCkuDb7kbwhuIxqEh99BpwSYfmOtpcO SS5Tz4Aycr0UvccPQmjXBZlZRxxQps7hY11C90XxQPmDUaEAxcTa//PbYqRi6BH24jmz ap4WFQ+oxxdcNAkU8BuS8lj1iiIBB+dXRUxWYdYi1vawR89cMTYj7dQuROR9lfMskADY srkspqNZBuFQM6TZt4QIVTAGAfzhRmejGbwZfLF2PpkvxQxwDM0++PButpMJW5GorX6D gq6gPUhURDbB7jlw0jFwvblAxzjAdEFxNRe5L8ox/WEJruXEcOWqM/l6N4mfjbhQ7TVq 4g/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680226962; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tfm+hbs/jl6LALmLyvo0+JGmZiFpCrqmfVmO3EjPG/U=; b=myFxY0tT8Ju05TOWSiHLjBLbhv5eIlEsqnJDbe3wEgxDHf0jXrNoR2jOsgdGb68HRm O0MarRwQ9KVMMZAkS87cFmDYR5nBFJxp7y++pB2dPHUbE7NGGVQ54fkJSGftpVASA1qo gjd0pQFsj7+XAG69GBn5tr5hSndbzZC4do26QhzwHYEOviIPdnCbjrMnX0o9M2KcFYjk 9//Sn7HB+P+b9PhhHsPMITr+VZfXdodcEGUHRZBNnwO5VPHzaOYoxk2im4iCIR4UMMNP S42+yAOTZSj8De2k+gdlDqA7LGUJpQXKJDKRh757LjK8BwYtkjQcZNXjkRw0fAkCy5rj raAQ== X-Gm-Message-State: AAQBX9cy7+gg9iwyJeZYIhHcLtuIiACOZ7TuQgvVIxfH+dXy2jSNFqQs y16cHXiQJAZ0yCc0Y9QOYPo= X-Received: by 2002:a17:902:d48f:b0:1a1:af64:380c with SMTP id c15-20020a170902d48f00b001a1af64380cmr29599940plg.27.1680226961690; Thu, 30 Mar 2023 18:42:41 -0700 (PDT) Received: from google.com ([2620:15c:211:201:93aa:8e39:c08b:8c2c]) by smtp.gmail.com with ESMTPSA id bf5-20020a170902b90500b001a2574813b8sm307862plb.278.2023.03.30.18.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 18:42:40 -0700 (PDT) Sender: Minchan Kim Date: Thu, 30 Mar 2023 18:42:38 -0700 From: Minchan Kim To: Christoph Hellwig Cc: Pankaj Raghav , martin@omnibond.com, axboe@kernel.dk, akpm@linux-foundation.org, hubcap@omnibond.com, willy@infradead.org, 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: References: <20230328112716.50120-1-p.raghav@samsung.com> <20230328112716.50120-2-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Thu, Mar 30, 2023 at 04:16:25PM -0700, Christoph Hellwig wrote: > On Thu, Mar 30, 2023 at 03:51:54PM -0700, Minchan Kim wrote: > > > to remove the call to page_endio() function that unlocks or marks > > > writeback end on the page. > > > > > > Rename the endio handler from zram_page_end_io to zram_read_end_io as > > > the call to page_endio() is removed and to associate the callback to the > > > operation it is used in. > > > > Since zram removed the rw_page and IO comes with bio from now on, > > IIUC, we are fine since every IO will go with chained-IO. Right? > > writeback_store callszram_bvec_read with a NULL bio, that is it just > fires off an async read without any synchronization. It should go under zram_read_from_zspool, not zram_bvec_read_from_bdev. The ZRAM_UNDER_WB and ZRAM_WB under zram_slot_lock should synchronize.