diff options
author | Josef Bacik <josef@redhat.com> | 2011-05-11 17:30:53 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-05-23 13:03:13 -0400 |
commit | 589d8ade83f07c0f11c8191c0ca309f34d7a2c14 (patch) | |
tree | e1e628bd721ae6fd34e1454f8124ecb9a2b3464f /fs/btrfs/relocation.c | |
parent | d82a6f1d7e8b61ed5996334d0db66651bb43641d (diff) | |
download | linux-589d8ade83f07c0f11c8191c0ca309f34d7a2c14.tar.gz linux-589d8ade83f07c0f11c8191c0ca309f34d7a2c14.tar.bz2 linux-589d8ade83f07c0f11c8191c0ca309f34d7a2c14.zip |
Btrfs: try not to sleep as much when doing slow caching
When the fs is super full and we unmount the fs, we could get stuck in this
thing where unmount is waiting for the caching kthread to make progress and the
caching kthread keeps scheduling because we're in the middle of a commit. So
instead just let the caching kthread keep going and only yeild if
need_resched(). This makes my horrible umount case go from taking up to 10
minutes to taking less than 20 seconds. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions