Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3855130rwb; Tue, 20 Sep 2022 05:50:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5z1p8AX9PqsFvxDnfEpspexLyG7Lr2Hv3ivRAEgQ0GB0zrS2X9E+VxfNqdai2vbHZfHW7L X-Received: by 2002:a63:8843:0:b0:439:3c8e:c2c0 with SMTP id l64-20020a638843000000b004393c8ec2c0mr20263920pgd.404.1663678230079; Tue, 20 Sep 2022 05:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663678230; cv=none; d=google.com; s=arc-20160816; b=QYlwnq0qOFRjjHxp5PROfxhuwCHqSnFmv0KLLiiDGCiSmkDXIzk6cUPVH4CMFUvO6Z F3vzlFywhxy8e6ybeTqsHD8vbJ7g8ZGwmB52Fa0j+pR8rmFH+Pkr4Vmjoi/S55mcHNRS 4k1ksz6pSpbt2cxTUGQDXtSmSXy/W/cV5u+p0kk2NjqQyrISj0W1ZDQLiL5nrEPSWtkZ GKc9ndCYI7y52sC20Ul3TVZ9s6e8hCdmQLH++Gue7hyTjOheH622i1LRwzs+u/6XtC+/ Qx/XL1qCP+sNOBhY90V7X4eynpUwyZ8k53N4yh87SxKUkIVjPKQJUB9mccsOv2RZf8ex OwZQ== 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=WnF/1Dtk0+9PQvq+aewDI6qbT4DPlncu6uatHYC/kiE=; b=xSnjqyrG//fL8LMKuzg7O5kM1T9HHuytS0noILHH/jmzyfg6eV76IEMvvCs/+7kwFx /WDotf3bVMRZBHP4Q6iTgL/gNA940wvcHbrp5YQ2rUDG+UnfnL7p0nGdMbomQ4cON49H qfhaIQP9MxeJsXAovx/DvUNgBpIW97LFThJEumiegEYGJTx1TJN70U7x7ZUCQgnFXFfc ZkLJM0CdIWGcBnksCpMYGo+sx/xIpEx2dNn4mnKHQ5/5SEq3Ba6HVal3rfn2cMMmYsiM 76ji8pB4Q1mXirqzIqmjqEEby5XERxbe0u/SvVjxvcAIA2Zv4BfQbeaMbxOJjmYB8RK4 m2TA== 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 z38-20020a631926000000b004227041e9d2si1613010pgl.405.2022.09.20.05.50.17; Tue, 20 Sep 2022 05:50:30 -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 S229845AbiITMNW (ORCPT + 99 others); Tue, 20 Sep 2022 08:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiITMNL (ORCPT ); Tue, 20 Sep 2022 08:13:11 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E9757437A for ; Tue, 20 Sep 2022 05:13:10 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 2216D68AA6; Tue, 20 Sep 2022 14:13:06 +0200 (CEST) Date: Tue, 20 Sep 2022 14:13:05 +0200 From: Christoph Hellwig To: Liu Shixin Cc: Seth Jennings , Dan Streetman , Vitaly Wool , Andrew Morton , Nathan Chancellor , Christoph Hellwig , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kefeng Wang Subject: Re: [PATCH v5 2/5] Revert "frontswap: simplify frontswap_register_ops" Message-ID: <20220920121305.GA4237@lst.de> References: <20220915035003.3347466-1-liushixin2@huawei.com> <20220915035003.3347466-3-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915035003.3347466-3-liushixin2@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Thu, Sep 15, 2022 at 11:50:00AM +0800, Liu Shixin wrote: > This reverts commit f328c1d16e4c764992895ac9c9425cea861b2ca0. > > Since we are supported to delay zswap initializaton, we need to invoke > ops->init for the swap device which is already online when register > backend. Why do we "have" to do it. Retroactively supporting functionality on previously enabled swap devices seems rather odd, and the amount of cruft added for it here absolutely does not seem to be worth it.