• Frederic Weisbecker's avatar
    reiserfs: Relax lock on xattr removing · 4f3be1b5
    Frederic Weisbecker authored
    When we remove an xattr, we call lookup_and_delete_xattr()
    that takes some private xattr inodes mutexes. But we hold
    the reiserfs lock at this time, which leads to dependency
    inversions.
    
    We can safely call lookup_and_delete_xattr() without the
    reiserfs lock, where xattr inodes lookups only need the
    xattr inodes mutexes.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Christian Kujau <lists@nerdbynature.de>
    Cc: Alexander Beregalov <a.beregalov@gmail.com>
    Cc: Chris Mason <chris.mason@oracle.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    4f3be1b5
xattr.c 26.8 KB