Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3043508rdb; Wed, 15 Nov 2023 20:23:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGM//kOmowYwhn9sx/mfT7fSqtSD+qBQUVtFveh+K2KjoxSoQHPMD9Yr/FhVaLX1DKJKT5 X-Received: by 2002:a17:902:e543:b0:1cc:87f8:96bc with SMTP id n3-20020a170902e54300b001cc87f896bcmr9163033plf.15.1700108625269; Wed, 15 Nov 2023 20:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700108625; cv=none; d=google.com; s=arc-20160816; b=grduxgvC/pADfuJqpH0oV0UdvacKnHl9yUvpKZT13r/QmDUF9mJobY7N7mmtprjX/L zTxDLZlTVt3KdpFTkZkvpm5eaVe9M5BW1XjrDQcvlIyj5uuGWejTn52eDvy7cCuBAjle xyBJkzFaVdqvHtpw9bVe7SzLpz5x4gJLcOo5GZhQJjmnj89IPhJAnWoudU9fUkUVshJe n5eoa95gvBEWfmGshfwQyN2Cvd9lKjNmjZTKS1L1+f7VjnnYDAx/G554oB9MKNZFTh6r 17sDMWkJNeR0jlAX+TLZ3yc2+7Ly+3dJVGnLFWlFD8Obebx8beLfBRmkXwaWkAdrMtaA UVOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g0aRwczQ6tXJ0ICX2vno9uyodkFr2+icyRVyCD2VH6Q=; fh=Z/slWphgmX6QJKb1htDfNZvLrT1b2fPU4vG8qFrGdBs=; b=R4VP/4IJ97HMqCF7HmTQAlxp9U22zPramhkc2Yhgqt9DcdzTsjR3Bd+Bi496uort+Z yq50AnrjFa6fKR10m3AfjeoKNenxmqu23MSgmK/eTuctx+DpJIagjFQ+QeuJVqI31DLK d9fWUXxV0OHt69iQKUIWFiQNUHAQUOeLtBnUXfmNcc915h20P96UVAoNETNYQ6yTVh8Z +WiWfCvQfDC3jT6yilLDuuAgc0RlXmWWIMsvHxoJNWR3MKAimnxNMTLOsBmyeC1qCkn+ xdAlXbVHDiOnefReAJvoWEKMg9kVr+h75XsqPGPLgEoryI86yY+5w8YNoMZ2qAVdhwCg GaRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Cx9hTOzU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e2-20020a170902d38200b001cc56120079si10903680pld.84.2023.11.15.20.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 20:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Cx9hTOzU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D6E3C80212F7; Wed, 15 Nov 2023 20:23:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344668AbjKPEXf (ORCPT + 99 others); Wed, 15 Nov 2023 23:23:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344578AbjKPEXe (ORCPT ); Wed, 15 Nov 2023 23:23:34 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60AF3197 for ; Wed, 15 Nov 2023 20:23:30 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5094727fa67so519475e87.3 for ; Wed, 15 Nov 2023 20:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1700108608; x=1700713408; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g0aRwczQ6tXJ0ICX2vno9uyodkFr2+icyRVyCD2VH6Q=; b=Cx9hTOzUrb/TT36UChtkk1oqdDIjH0nTmjY+T4kQpryzH0iRIjhYlvfGX0s0WmJYZ4 H078TxywQycWvioIuAo61OtXOAGTwQnWX6XYgvqspT394guFcluLL7s5SlXkExOzRKa7 v68rqVYBPHdgZN4nTXs5EfxdnIPDMZlTXQNImQWy9AkfGIyOXePaTT0fSoBJdgbybfnD qHyD9z4QqbfMsO+0/sT9t6stHGyFaMOWWw9Qt3zNxRjJAKHYLIdypgld9chza3DAVz5J 8sKMGEACO4GDLI+F6HU0eabUctYhEkas4bV8Yj6wRMvH8aMvU4Jqp9lgqSWrM8DCDUXK aAzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700108608; x=1700713408; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g0aRwczQ6tXJ0ICX2vno9uyodkFr2+icyRVyCD2VH6Q=; b=NrsQ4l769bagtyvsHoZt5F88FD5+MF5N8FZZ6DenuUhg2Ph+UY3kHOXcmliMuKqf58 yPmw8M8ssSMFoC4JNFc4lL+0wIsD6jiCU6Q63vAaBUAkpBySzk5iEOJ+6PGe+R6RJ3RX ZJ115rWaQR9JCKV/dmiMFyEvE1V5ocXaKUdoABkCAldJXIcRR6SbUrRuJoayYtCR3jNu 9BOumEnOf1aukHmd3hQhqdUEPEKuXauo6prfJgHouOTP4MVsOB51JQH4SYoGB1ANN+YO QSQlmKaWa3sbZQaw3kJ2I/tp/bozcz7sVnCpgi2wi27tWkAthVkG7Yq5eyXKjYIYAhAa wSgA== X-Gm-Message-State: AOJu0Yz1SyU4EXc+ngnDvfD68WVjV0mfbqqUBPF0YyKC1+AEt/f7Eypx 9/aujSWxkIGAlldROOTtiB9J84ZSTKT8vJw3Zw4PRg== X-Received: by 2002:ac2:4e10:0:b0:503:905:c5a3 with SMTP id e16-20020ac24e10000000b005030905c5a3mr1029096lfr.35.1700108608561; Wed, 15 Nov 2023 20:23:28 -0800 (PST) MIME-Version: 1.0 References: <20231113130601.3350915-1-hezhongkun.hzk@bytedance.com> In-Reply-To: From: =?UTF-8?B?6LS65Lit5Z2k?= Date: Thu, 16 Nov 2023 12:23:17 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] mm:zswap: fix zswap entry reclamation failure in two scenarios To: Yosry Ahmed Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, nphamcs@gmail.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ying Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 20:23:43 -0800 (PST) On Thu, Nov 16, 2023 at 12:10=E2=80=AFPM Yosry Ahmed wrote: > > It can be enabled at runtime, or enabled by default by using > CONFIG_ZSWAP_EXCLUSIVE_LOADS_DEFAULT_ON. > Yes, I see it in the doc. Thanks. > > > The reason I added it behind runtime and config knobs is to preserve > the existing behavior in case someone depends on it. At Google, we > have been using exclusive loads for a long time. If other users of > zswap agree to make this the default behavior or make it the only way > to do zswap loads I don't have a problem with it. > Got it. Thanks for your feedback.