]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:48 +0000 (08:59 -0800)
commit1b2d323dfc85e2467577d55b22b90283cdc707db
tree8f38bb554d0613d431c37e59c88121bd922ec3d0
parent5d32eb51dfc008e9927d2b6263451d90d6fd7449
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