]> git.baikalelectronics.ru Git - kernel.git/commit
z3fold: fix spinlock unlocking in page reclaim
authorVitaly Wool <vitalywool@gmail.com>
Thu, 16 Mar 2017 23:40:19 +0000 (16:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Mar 2017 23:56:18 +0000 (16:56 -0700)
commit0527577fba258c948b0c6e008275bdb3bcbe1a3e
tree37c4d5e3ee0e029749d65aca37981dbe1ae93279
parentd94eac583ff20dbd8246dca2aa4fc1381db362de
z3fold: fix spinlock unlocking in page reclaim

Commmit 505450de6c87 ("z3fold: add kref refcounting") introduced a bug
in z3fold_reclaim_page() with function exit that may leave pool->lock
spinlock held.  Here comes the trivial fix.

Fixes: 505450de6c87 ("z3fold: add kref refcounting")
Link: http://lkml.kernel.org/r/20170311222239.7b83d8e7ef1914e05497649f@gmail.com
Reported-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c