kill-the-BKL/reiserfs: release the write lock before rescheduling on do_journal_end()
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 30 Apr 2009 21:04:32 +0000 (23:04 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 14 Sep 2009 05:18:08 +0000 (07:18 +0200)
commite6950a4da33fa84ef4402d29e2331cd5e5df9cb8
tree05650bb6b4fc7c148253dd3c7c4222c2783f84d3
parentf32049dc244f4d394c8faa161b4f13cb8c4f5c8c
kill-the-BKL/reiserfs: release the write lock before rescheduling on do_journal_end()

When do_journal_end() copies data to the journal blocks buffers in memory,
it reschedules if needed between each block copied and dirtyfied.

We can also release the write lock at this rescheduling stage,
like did the bkl implicitly.

[ Impact: release the reiserfs write lock when it is not needed ]

Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
fs/reiserfs/journal.c