diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-04-24 20:39:25 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-04-24 21:46:05 +0200 |
commit | 59bc5c758ece00fb0b2a170dd8fbbf31f1856c8a (patch) | |
tree | 746fcdfe8181c638b593174deb4d841310e8c698 /fs/affs | |
parent | Btrfs: fix fallocate deadlock on inode extent lock (diff) | |
download | linux-59bc5c758ece00fb0b2a170dd8fbbf31f1856c8a.tar.xz linux-59bc5c758ece00fb0b2a170dd8fbbf31f1856c8a.zip |
Btrfs: fix deadlocks and stalls on dead root removal
After a transaction commit, the old root of the subvol btrees are sent through
snapshot removal. This is what actually frees up any blocks replaced by
COW, and anything the old blocks pointed to.
Snapshot deletion will pause when a transaction commit has started, which
helps to avoid a huge amount of delayed reference count updates piling up
as the transaction is trying to close.
But, this pause happens after the snapshot deletion process has asked other
procs on the system to throttle back a bit so that it can make progress.
We don't want to throttle everyone while we're waiting for the transaction
commit, it leads to deadlocks in the user transaction ioctls used by Ceph
and makes things slower in general.
This patch changes things to avoid the throttling while we sleep.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/affs')
0 files changed, 0 insertions, 0 deletions