kill-the-BKL/reiserfs: release the write lock on flush_commit_list()
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 1 May 2009 00:27:39 +0000 (02:27 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 14 Sep 2009 05:18:13 +0000 (07:18 +0200)
commit6e3647acb4f200add1d8e0203514f7ac925ae463
tree95a779d1f59c04ca58956a49340b88497b476f13
parent4c5eface5d0e4eb7f77be346193c2850e7e3b983
kill-the-BKL/reiserfs: release the write lock on flush_commit_list()

flush_commit_list() uses ll_rw_block() to commit the pending log blocks.
ll_rw_block() might sleep, and the bkl was released at this point. Then
we can also relax the write lock at this point.

[ 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