Re: [PATCH v1] mm: zswap: Fix a potential memory leak in zswap_decompress().

From: Johannes Weiner
Date: Thu Nov 14 2024 - 00:12:02 EST


On Thu, Nov 14, 2024 at 01:56:16AM +0000, Sridhar, Kanchana P wrote:
> So my question was, can we prevent the migration to a different cpu
> by relinquishing the mutex lock after this conditional

Holding the mutex doesn't prevent preemption/migration.