Skip to content
Commit fdb5effd authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: serialize flushers in reserve_metadata_bytes



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>
parent b5009945
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment