aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-15 16:15:45 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commitcb03c743c6486e4efb8be6bdf7bf23177826d156 (patch)
treee5e9cfb8258c55946b0a551b8f89deb7a2b0267a /fs/btrfs/ctree.h
parent211c17f51f46dc6c308c742098273dd46b5ca59c (diff)
Btrfs: Change the congestion functions to meter the number of async submits as well
The async submit workqueue was absorbing too many requests, leading to long stalls where the async submitters were stalling. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index a9377fb16c37..293464c0c6ba 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -522,6 +522,7 @@ struct btrfs_fs_info {
522 struct work_struct async_submit_work; 522 struct work_struct async_submit_work;
523 spinlock_t end_io_work_lock; 523 spinlock_t end_io_work_lock;
524 spinlock_t async_submit_work_lock; 524 spinlock_t async_submit_work_lock;
525 atomic_t nr_async_submits;
525 526
526#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) 527#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
527 struct work_struct trans_work; 528 struct work_struct trans_work;