diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-05-15 16:15:45 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | cb03c743c6486e4efb8be6bdf7bf23177826d156 (patch) | |
tree | e5e9cfb8258c55946b0a551b8f89deb7a2b0267a /fs/btrfs/ctree.h | |
parent | 211c17f51f46dc6c308c742098273dd46b5ca59c (diff) | |
download | lwn-cb03c743c6486e4efb8be6bdf7bf23177826d156.tar.gz lwn-cb03c743c6486e4efb8be6bdf7bf23177826d156.zip |
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.h | 1 |
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 { struct work_struct async_submit_work; spinlock_t end_io_work_lock; spinlock_t async_submit_work_lock; + atomic_t nr_async_submits; #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) struct work_struct trans_work; |