[JFFS2] Fix lack of locking in thread_should_wake()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 31 Oct 2008 14:52:24 +0000 (14:52 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 31 Oct 2008 14:52:24 +0000 (14:52 +0000)
The thread_should_wake() function trawls through the list of 'very
dirty' eraseblocks, determining whether the background GC thread should
wake. Doing this without holding the appropriate locks is a bad idea.

OLPC Trac #8615

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org

No differences found