• Frederic Weisbecker's avatar
    reiserfs: Warn on lock relax if taken recursively · c4a62ca3
    Frederic Weisbecker authored
    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: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Alexander Beregalov <a.beregalov@gmail.com>
    Cc: Chris Mason <chris.mason@oracle.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    c4a62ca3
lock.c 2.62 KB