• Josef Bacik's avatar
    Btrfs: serialize flushers in reserve_metadata_bytes · fdb5effd
    Josef Bacik authored
    We keep having problems with early enospc, and that's because our method of
    making space is inherently racy.  The problem is we can have one guy trying to
    make space for himself, and in the meantime people come in and steal his
    reservation.  In order to stop this we make a waitqueue and put anybody who
    comes into reserve_metadata_bytes on that waitqueue if somebody is trying to
    make more space.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    fdb5effd
extent-tree.c 192 KB