kill-the-bkl/reiserfs: fix recursive reiserfs write lock in reiserfs_commit_write()
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 25 Aug 2009 01:38:12 +0000 (03:38 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 14 Sep 2009 05:18:29 +0000 (07:18 +0200)
commit7e94277050e31aa4204060f03953bba72598cf7d
tree7a53cd463e76c0ed5e72345152755b5318ad430b
parentb10ab4c337a600456ed2d9daea0331016f7cdeeb
kill-the-bkl/reiserfs: fix recursive reiserfs write lock in reiserfs_commit_write()

reiserfs_commit_write() is always called with the write lock held.
Thus the current calls to reiserfs_write_lock() in this function are
acquiring the lock recursively.
We can safely drop them.

This also solves further assumptions for this lock to be really
released while calling reiserfs_write_unlock().

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Laurent Riffard <laurent.riffard@free.fr>
fs/reiserfs/inode.c