• Josef Bacik's avatar
    Btrfs: lock the transition from dirty to writeback for an eb · 51561ffe
    Josef Bacik authored
    There is a small window where an eb can have no IO bits set on it, which
    could potentially result in extent_buffer_under_io() returning false when we
    want it to return true, which could result in not fun things happening.  So
    in order to protect this case we need to hold the refs_lock when we make
    this transition to make sure we get reliable results out of
    extent_buffer_udner_io().  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    51561ffe
extent_io.c 123 KB