]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: Warn on lock relax if taken recursively
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 30 Dec 2009 02:20:19 +0000 (03:20 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 2 Jan 2010 00:54:37 +0000 (01:54 +0100)
commita592c0ce7ccbf3af525867ef71a4a42a2c285b84
tree017484107efa26789ddd96579fcef09d874333c0
parent80551bf2b79deaa09efe22351171969d556db3e8
reiserfs: Warn on lock relax if taken recursively

When we relax the reiserfs lock to avoid creating unwanted
dependencies against others locks while grabbing these,
we want to ensure it has not been taken recursively, otherwise
the lock won't be really relaxed. Only its depth will be decreased.
The unwanted dependency would then actually happen.

To prevent from that, add a reiserfs_lock_check_recursive() call
in the places that need it.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
fs/reiserfs/lock.c
include/linux/reiserfs_fs.h