From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B6D7F4F1 for ; Sun, 15 Mar 2026 00:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773533512; cv=none; b=e2UGvzq3DL++wMd8KGPipqWOui1KiTULEosErm0JBsG8Jf9heg22uXCUy/lRFdXNnj6wtoovNeDaaRZFwGYHz+os+PvbiwkOCSVRB9owapJ+hVNfdxK+HKm9BGERGDBdZe8iyEW7j9tTHneQZjvni5E/Y5eeD0CxZbiTdkNElno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773533512; c=relaxed/simple; bh=L/1c8OBPkRGOP7RJPGO4H36hjk4kgyL6lAHh9ls8NYc=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=K/3C/Dk8UD8uIAgEQGLpUwKHkCbvTK+1XPFhekeZJFYXf3xl8eMc9OiDIVPbojSZvq1OWP8pcwfjiHRloe3YPzJcH4X/5N27S90PlP5Vpv5NgnZTisz51BQKUg31bbtljwatL/Ax3NJ3B3kfTguqJo9nRSlGMSk1V629yYx3NqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=dCOqyIoY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="dCOqyIoY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C328C116C6; Sun, 15 Mar 2026 00:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1773533511; bh=L/1c8OBPkRGOP7RJPGO4H36hjk4kgyL6lAHh9ls8NYc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dCOqyIoYfThGDfYzUlIfU7lplof7zJXlU2c/1xJH29lmvTzocBoJakIccAly3gOBc 1MnvHynyYj4yV/aNLELFgyfQUnAZnO/cIdTGjeE6GR/DRh/m0UAkBkcBZCfiyiKHL0 ehzot4uwNzzK65jYC8LZCnelO/dU8NloJre5X+Bs= Date: Sat, 14 Mar 2026 17:11:50 -0700 From: Andrew Morton To: "Kanchana P. Sridhar" Cc: hannes@cmpxchg.org, yosry@kernel.org, nphamcs@gmail.com, chengming.zhou@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, senozhatsky@chromium.org Subject: Re: [PATCH 0/2] zswap pool per-CPU acomp_ctx simplifications Message-Id: <20260314171150.fd6a80a8f51a5390144d20d6@linux-foundation.org> In-Reply-To: <20260314051632.17931-1-kanchanapsridhar2026@gmail.com> References: <20260314051632.17931-1-kanchanapsridhar2026@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 13 Mar 2026 22:16:30 -0700 "Kanchana P. Sridhar" wrote: > > This patchset persists the zswap pool's per-CPU acomp_ctx resources to > last until the pool is destroyed. It then simplifies the per-CPU > acomp_ctx mutex locking in zswap_compress()/zswap_decompress(). > > Further, it consistently uses the same checks for valid > acomp_ctx->acomp/req in zswap procedures that allocate/deallocate > acomp_ctx members. Sashiko has questions: https://sashiko.dev/#/patchset/20260314051632.17931-1-kanchanapsridhar2026%40gmail.com