kill wbuf_queued/wbuf_dwork_lock
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 1 Aug 2014 19:13:40 +0000 (20:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:47:55 +0000 (08:47 -0800)
commit5f73dee2222e4b602c88419a19dd02ef896513f8
treef944e032f1280dc4dae9d01a9f3b425fd18a5a7d
parenta58d9ee3e1b064e8b449177dedab4d2da162fdd0
kill wbuf_queued/wbuf_dwork_lock

commit 99358a1ca53e8e6ce09423500191396f0e6584d2 upstream.

schedule_delayed_work() happening when the work is already pending is
a cheap no-op.  Don't bother with ->wbuf_queued logics - it's both
broken (cancelling ->wbuf_dwork leaves it set, as spotted by Jeff Harris)
and pointless.  It's cheaper to let schedule_delayed_work() handle that
case.

Reported-by: Jeff Harris <jefftharris@gmail.com>
Tested-by: Jeff Harris <jefftharris@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/wbuf.c