diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-10-30 11:23:27 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-30 11:23:27 -0400 |
commit | 87ef2bb46bfc4be0b40799e68115cbe28d80a1bd (patch) | |
tree | 8060158d9adee7ad2fc591c47ad1354b07237020 /fs/btrfs/inode.c | |
parent | 09fde3c9ba360926ce021c184a1ee343f4d8fa19 (diff) | |
download | op-kernel-dev-87ef2bb46bfc4be0b40799e68115cbe28d80a1bd.zip op-kernel-dev-87ef2bb46bfc4be0b40799e68115cbe28d80a1bd.tar.gz |
Btrfs: prevent looping forever in finish_current_insert and del_pending_extents
finish_current_insert and del_pending_extents process extent tree modifications
that build up while we are changing the extent tree. It is a confusing
bit of code that prevents recursion.
Both functions run through a list of pending operations and both funcs
add to the list of pending operations. If you have two procs in either
one of them, they can end up looping forever making more work for each other.
This patch makes them walk forward through the list of pending changes instead
of always trying to process the entire list. At transaction commit
time, we catch any changes that were left over.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions