[Precise][Quantal][Raring][SRU][PATCH 0/1] Revert "zram: use zram->lock to protect zram_free_page() in swap free notify path"
luis.henriques at canonical.com
Tue Sep 10 10:34:51 UTC 2013
Users of the Precise, Quantal and Raring kernels using zram will
experience system freezes that will require a hard reset when the
system is under high memory pressure.
This issue is actually fixed upstream with commit:
a0c516c zram: don't grab mutex in zram_slot_free_noity
However, this commit doesn't apply cleanly and would require several
others to be applied.
Since zram is a staging driver, my suggestion is to simply revert the
offending upstream commit:
57ab048 zram: use zram->lock to protect zram_free_page() in swap free notify path
I was able to reproduce the original problem on kvm, running Raring.
1. I've installed zram-config package which will activate zram devices as
2. Executed several applications to force swap to be used.
After a while, the system freezes.
(The same testcase with a kernel where this commit is reverted does not
cause the system freeze.)
Luis Henriques (1):
Revert "zram: use zram->lock to protect zram_free_page() in swap free
drivers/staging/zram/zram_drv.c | 2 --
drivers/staging/zram/zram_drv.h | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
More information about the kernel-team