]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kill wbuf_queued/wbuf_dwork_lock
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 1 Aug 2014 19:13:40 +0000 (20:13 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:15 +0000 (19:02 +0100)
commitca57f7e423849774b8fbc4547c8a7f43b876216b
treec6251bba8ad61a90bcd3c70f66e7c7291f60df68
parent1c4b9d08a82414e5351a2aa54e047eff7286e93e
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: Jiri Slaby <jslaby@suse.cz>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/wbuf.c