]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitc4a62ca362258d98f42efb282cfbf9b61caffdbe
tree017484107efa26789ddd96579fcef09d874333c0
parent0719d3434747889b314a1e8add776418c4148bcf
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