]> git.baikalelectronics.ru Git - kernel.git/commit
z3fold: fix stale list handling
authorVitaly Wool <vitalywool@gmail.com>
Tue, 3 Oct 2017 23:15:06 +0000 (16:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Oct 2017 00:54:24 +0000 (17:54 -0700)
commit978c361120ccb174ad8089e7b6ecbc5beed2323b
tree43039ba93ba9302c5ff1dc10716510d104f1d8c0
parent91d4a85d86a640f7cfd57c96340d29723aa3f429
z3fold: fix stale list handling

Fix the situation when clear_bit() is called for page->private before
the page pointer is actually assigned.  While at it, remove work_busy()
check because it is costly and does not give 100% guarantee anyway.

Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: <Oleksiy.Avramchenko@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c