Searched hist:"98 e44fda2ea19c0e8b0a2e0e4dcd3461251f09ea" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/pstore/ |
H A D | platform.c | diff 98e44fda2ea19c0e8b0a2e0e4dcd3461251f09ea Wed May 18 07:00:05 CDT 2016 Namhyung Kim <namhyung@kernel.org> pstore: Enable compression on normal path (again)
The commit f0e2efcfd2717 ("pstore: do not use message compression without lock") added a check to 'is_locked' to avoid breakage in concurrent accesses. But it has a side-effect of disabling compression on normal path since 'is_locked' variable is not set. As normal path always takes the lock, it should be initialized to 1.
This also makes the unlock code a bit simpler.
Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org>
|