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 D542737EFF4 for ; Tue, 17 Mar 2026 18:01:05 +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=1773770465; cv=none; b=mGna9aHZ1xW2C860+HItj5Hi1VI4n01kgPDl0MmmH0hKPd/5xulN4aKurShTwcpIXHIK0+Q1sKGkylvuCeE9gGL/cCTevbT4ZZTmWlLoF0aZW2Ba6j+WzQLnrtY7RJNp1bwqeibj1HbBDj4K12lDUNPWrcKPx4Mlt83uSQwW7LM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773770465; c=relaxed/simple; bh=CFg2US6vjV2aTZL3y6So8DxUy+nlf5f7+zOMdGWG4Kg=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=O8htJ0bqMIAB3UnoBosYCNxLn2pQziy1gxKf6n6XqlFukQooBEWf45dh/B0UWxr1dY8FUGnPcbuHrHztN4i4pu+DsUKUKJLbpWxhzT5m0SZLFQNbMHE1MVebaHSf3qDGk6V0Nl0FvF/JDNk+9Ps/OSeV+pUip1fv9UBZPa4a+qk= 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=FmER+cSc; 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="FmER+cSc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9FE8C4CEF7; Tue, 17 Mar 2026 18:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1773770464; bh=CFg2US6vjV2aTZL3y6So8DxUy+nlf5f7+zOMdGWG4Kg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FmER+cSc3BeBQAONJABsMs3PW893hGhqNg9jlYr4B3Nd29slzBhzw9iqnJhN8rhiC AeWELEG238AaH35Tl1wTpWHR5tclbTt1RQfdhvDS3MNXjouYTHMG17+pV5sTGt/fX+ esIKA/qnLn7pWRrQANyAZrL0Wn7mrv4UCdxR4hgk= Date: Tue, 17 Mar 2026 11:01:04 -0700 From: Andrew Morton To: "Lorenzo Stoakes (Oracle)" Cc: Johannes Weiner , Yosry Ahmed , Nhat Pham , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH mm-hotfixes] mm/zswap: add missing kunmap_local() Message-Id: <20260317110104.8bfa06e7a88ae6d26bf9c33a@linux-foundation.org> In-Reply-To: <13e09a99-181f-45ac-a18d-057faf94bccb@lucifer.local> References: <20260316140122.339697-1-ljs@kernel.org> <13e09a99-181f-45ac-a18d-057faf94bccb@lucifer.local> 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 Tue, 17 Mar 2026 12:59:35 +0000 "Lorenzo Stoakes (Oracle)" wrote: > Hi Andrew, > > Please apply the fix-patch enclosed to add a dcache flush which was also > missing here. > > ... > That was a lot of sleuthing. > --- a/mm/zswap.c > +++ b/mm/zswap.c > @@ -950,6 +950,7 @@ static bool zswap_decompress(struct zswap_entry *entry, struct folio *folio) > memcpy_from_sglist(dst, input, 0, PAGE_SIZE); > dlen = PAGE_SIZE; > kunmap_local(dst); > + flush_dcache_folio(folio); > } else { > sg_init_table(&output, 1); > sg_set_folio(&output, folio, PAGE_SIZE, 0); Which will all be lost when I squash the patch, unless someone follows the Link: which I add to the footer when squashing. How about I copy your sleuthing into the base patch changelog to capture the reasoning for the flush_dcache_folio()'s presence?