kill-the-bkl/reiserfs: panic in case of lock imbalance
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 25 Aug 2009 02:18:06 +0000 (04:18 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 14 Sep 2009 05:18:30 +0000 (07:18 +0200)
commit80503185989b2dd84170bb842e23d3fd45ebdf40
tree5b1a862071199421ba0427137067b8ed14a0c843
parent7e94277050e31aa4204060f03953bba72598cf7d
kill-the-bkl/reiserfs: panic in case of lock imbalance

Until now, trying to unlock the reiserfs write lock whereas the current
task doesn't hold it lead to a simple warning.
We should actually warn and panic in this case to avoid the user datas
to reach an unstable state.

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/lock.c