• Chris Mason's avatar
    Btrfs: Start btree concurrency work. · 925baedd
    Chris Mason authored
    The allocation trees and the chunk trees are serialized via their own
    dedicated mutexes.  This means allocation location is still not very
    fine grained.
    
    The main FS btree is protected by locks on each block in the btree.  Locks
    are taken top / down, and as processing finishes on a given level of the
    tree, the lock is released after locking the lower level.
    
    The end result of a search is now a path where only the lowest level
    is locked.  Releasing or freeing the path drops any locks held.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    925baedd
locking.h 963 Bytes