Skip to content
  • Chris Mason's avatar
    Btrfs: switch extent_map to a rw lock · 890871be
    Chris Mason authored
    
    
    There are two main users of the extent_map tree.  The
    first is regular file inodes, where it is evenly spread
    between readers and writers.
    
    The second is the chunk allocation tree, which maps blocks from
    logical addresses to phyiscal ones, and it is 99.99% reads.
    
    The mapping tree is a point of lock contention during heavy IO
    workloads, so this commit switches things to a rw lock.
    
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    890871be