jffs2: Fix page lock / f->sem deadlock
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 1 Feb 2016 12:37:20 +0000 (12:37 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2016 11:11:26 +0000 (11:11 +0000)
commit49e91e7079febe59a20ca885a87dd1c54240d0f1
tree492560579a27a7658d2327f0e0a3a6eb825a303f
parent157078f64b8a9cd7011b6b900b2f2498df850748
jffs2: Fix page lock / f->sem deadlock

With this fix, all code paths should now be obtaining the page lock before
f->sem.

Reported-by: Szabó Tamás <sztomi89@gmail.com>
Tested-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@vger.kernel.org
fs/jffs2/README.Locking
fs/jffs2/gc.c