diff options
author | Josef Bacik <josef@redhat.com> | 2011-06-07 20:07:44 (GMT) |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-07-11 13:58:48 (GMT) |
commit | fdb5effd5c2a7e01dc3a4217bb194e2d3a5b160f (patch) | |
tree | f5eac07be3a5844179a020fd185ff377fb39961a /fs/btrfs/free-space-cache.c | |
parent | b5009945be18023942ce28327893c7bc1e58fe54 (diff) | |
download | linux-fsl-qoriq-fdb5effd5c2a7e01dc3a4217bb194e2d3a5b160f.tar.xz |
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: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions