]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: don't hold j_state_lock while calling wake_up()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 00:11:36 +0000 (19:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 00:11:36 +0000 (19:11 -0500)
commit08c2fc7bc9a50048167b4615d259a59dd52e2843
treed6039ae11b109ddb71e9724a46d54337535a2d6e
parent1581b3a171835753da4fae8b9790d05a6146d26f
jbd2: don't hold j_state_lock while calling wake_up()

The j_state_lock is one of the hottest locks in the jbd2 layer and
thus one of its scalability bottlenecks.

We don't need to be holding the j_state_lock while we are calling
wake_up(&journal->j_wait_commit), so release the lock a little bit
earlier.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c