]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: don't wake kjournald unnecessarily
authorEric Sandeen <sandeen@redhat.com>
Wed, 30 Jan 2013 05:39:28 +0000 (00:39 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Jan 2013 05:39:28 +0000 (00:39 -0500)
commit9a7378ee652b17cdb86f7aeb99280bce76d10bf9
tree07a7b90bec97ee73f0a7732e6ac1121f81264ea9
parent3db71238e9eef4e31767bfcda5359664664b9e36
jbd2: don't wake kjournald unnecessarily

Don't send an extra wakeup to kjournald in the case where we
already have the proper target in j_commit_request, i.e. that
transaction has already been requested for commit.

commit f97b7690 "jbd2: fix fsync() tid wraparound bug" changed
the logic leading to a wakeup, but it caused some extra wakeups
which were found to lead to a measurable performance regression.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
[tytso@mit.edu: reworked check to make it clearer]
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c