From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE457C001DF for ; Fri, 28 Jul 2023 03:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o42f5D2FOL00hiKRmaA83ri1cUf/CIXj5FaSGBc9dQ8=; b=BqjR/9Sasnww0X OMtTZ+X8gnwoGefuRft9EuKhLS6NTrdvqMIr/NIO1p3Uzjy24nGMJqETu8cIBQGr4ky7eAs2mHCXF M8JQJjjUkVaOKlarJxoTMCXpBQAcVZHiDFu71U5PpIQRCFJUDL4vXo5NB7D6l5zzKt12G3UYWCA8d /RMre4CYuADo/Zy/4ZoCFC7s7Igo7u6NICP+smDrylWKOAZ7J06S7F0zDrxDaxjKz1LUOxQ2qeMvO acgUAfoyEDqYNbh0e6zJmHXbEWMp42DX0xjEb4cO7TN8gUIsAaUcp+YrWyejkBSzhzFaSM9JLqRCl fgK/pNvqyTnLIfQHzhwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPEY0-001Tyb-2U; Fri, 28 Jul 2023 03:53:48 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPEXx-001TxD-22 for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2023 03:53:47 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-686f1240a22so1436351b3a.0 for ; Thu, 27 Jul 2023 20:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690516422; x=1691121222; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=He4/7ZjAaJYV3oY1Q5qsfXRQN2c+aw/i3Z8upeCFxZY=; b=UJJSmsvKuA+7vHlEK5zqxwvD8B6Yt8XfXuAItoiHvAj3OoqGrALOYkCYQccCqOBd5Z tmtMhmnK6zN87HaVH9ygwQIQdC4SZMGydBwDwFW+ZmxwVd+Yinpn/4wGAvXFE++zJAos O2FXcKEu9fLVqrGMsoLKFn9LRJ/AlJZ69+Cpw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690516422; x=1691121222; 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 :message-id:reply-to; bh=He4/7ZjAaJYV3oY1Q5qsfXRQN2c+aw/i3Z8upeCFxZY=; b=hYuZMtGNpHAQ9Platx5i7UWbcem/38itGxGtA25MYRaDwaWm2rqoShFJACW9UsHril /BuJxxWka4bqei7kgM20T80yNc2ChpRWdmd/2oqmt9btr7RA497X5XYQnlK5JlkpQY0m X9hWuFzxwge7TFXs5VH1wUM88OBbtBSIJ4VmrUHlwCgy6vHn1rMLcFpHfBOxizpBphcm UopXTnYkUV9hy3R+9rN/OlNztSzctWn38C1L/aTTONS0+uUxLSUrdriMee2jBPHcUCHU 07EnxZkWKTb0z+WPOxbLc1YqNp7Z3vTwUf0b5mp5JE9XLRVjan0eH4YlvG2vnSvkJWqx Rfqw== X-Gm-Message-State: ABy/qLY7nCazUa5Sle8E6CWtbbEU9InMHPDKOXQD/+dDCmBbPQyHoDlr Yf3xrNh9s4l15xXBVswnkicAFA== X-Google-Smtp-Source: APBJJlGsTHxAEzSXpONNRDxyKgcp4KNYdrSE+s2zmuMCZXMTXa7hKLkFVzAtadS71u0jqoE5bCgxyA== X-Received: by 2002:a05:6a00:194f:b0:680:2b80:8479 with SMTP id s15-20020a056a00194f00b006802b808479mr868615pfk.19.1690516421816; Thu, 27 Jul 2023 20:53:41 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:9314:7aae:8542:aa2d]) by smtp.gmail.com with ESMTPSA id d26-20020aa78e5a000000b006870ff20242sm212301pfr.186.2023.07.27.20.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 20:53:41 -0700 (PDT) Date: Fri, 28 Jul 2023 12:53:36 +0900 From: Sergey Senozhatsky To: Andrew Yang Cc: Minchan Kim , Sergey Senozhatsky , Andrew Morton , Matthias Brugger , AngeloGioacchino Del Regno , Sebastian Andrzej Siewior , wsd_upstream@mediatek.com, casper.li@mediatek.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2] zsmalloc: Fix races between modifications of fullness and isolated Message-ID: <20230728035336.GL955071@google.com> References: <20230727062910.6337-1-andrew.yang@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230727062910.6337-1-andrew.yang@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_205345_703833_892997F3 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (23/07/27 14:29), Andrew Yang wrote: > > Since fullness and isolated share the same unsigned int, > modifications of them should be protected by the same lock. > > Signed-off-by: Andrew Yang > Fixes: c4549b871102 ("zsmalloc: remove zspage isolation for migration") Reviewed-by: Sergey Senozhatsky _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel