aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-03-04 17:13:31 -0500
committerChris Mason <chris.mason@fusionio.com>2013-03-07 07:52:40 -0500
commitde3cb945db4d8eb3b046dc7a5ea89a893372750c (patch)
treed3f479c1431a2607d7154d7a1e10878533d38008 /fs/btrfs/inode.c
parent3a01aa7a25274308fe813a6237f678aed901cea3 (diff)
Btrfs: improve the delayed inode throttling
The delayed inode code batches up changes to the btree in hopes of doing them in bulk. As the changes build up, processes kick off worker threads and wait for them to make progress. The current code kicks off an async work queue item for each delayed node, which creates a lot of churn. It also uses a fixed 1 HZ waiting period for the throttle, which allows us to build a lot of pending work and can slow down the commit. This changes us to watch a sequence counter as it is bumped during the operations. We kick off fewer work items and have each work item do more work. Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions