diff options
author | Vitaly Wool <vitaly.wool@konsulko.com> | 2020-12-14 19:12:33 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 12:13:45 -0800 |
commit | dcf5aedb24f899d537e21c18ea552c780598d352 (patch) | |
tree | 52069bbec092a5d6faf520acb3480644b1f17ce0 /usr | |
parent | fc5488651c7d840c9cad9b0f273f2f31bd03413a (diff) | |
download | lwn-dcf5aedb24f899d537e21c18ea552c780598d352.tar.gz lwn-dcf5aedb24f899d537e21c18ea552c780598d352.zip |
z3fold: stricter locking and more careful reclaim
Use temporary slots in reclaim function to avoid possible race when
freeing those.
While at it, make sure we check CLAIMED flag under page lock in the
reclaim function to make sure we are not racing with z3fold_alloc().
Link: https://lkml.kernel.org/r/20201209145151.18994-4-vitaly.wool@konsulko.com
Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Cc: <stable@vger.kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions