diff options
author | Jeff Moyer <jmoyer@redhat.com> | 2012-12-05 14:17:21 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-12-05 14:17:21 -0500 |
commit | 8fa72d234da9b6b473bbb1f74d533663e4996e6b (patch) | |
tree | 536b8d2cf5aa3f0baee3aa0d89e602733be3df56 /include/linux | |
parent | c304a51bf42a7ce48f430a371e1213472c89e13d (diff) |
bdi: add a user-tunable cpu_list for the bdi flusher threads
In realtime environments, it may be desirable to keep the per-bdi
flusher threads from running on certain cpus. This patch adds a
cpu_list file to /sys/class/bdi/* to enable this. The default is to tie
the flusher threads to the same numa node as the backing device (though
I could be convinced to make it a mask of all cpus to avoid a change in
behaviour).
Thanks to Jeremy Eder for the original idea.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/backing-dev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 2a9a9abc9126..238521a19849 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/writeback.h> | 18 | #include <linux/writeback.h> |
19 | #include <linux/atomic.h> | 19 | #include <linux/atomic.h> |
20 | #include <linux/sysctl.h> | 20 | #include <linux/sysctl.h> |
21 | #include <linux/mutex.h> | ||
21 | 22 | ||
22 | struct page; | 23 | struct page; |
23 | struct device; | 24 | struct device; |
@@ -105,6 +106,9 @@ struct backing_dev_info { | |||
105 | 106 | ||
106 | struct timer_list laptop_mode_wb_timer; | 107 | struct timer_list laptop_mode_wb_timer; |
107 | 108 | ||
109 | cpumask_t *flusher_cpumask; /* used for writeback thread scheduling */ | ||
110 | struct mutex flusher_cpumask_lock; | ||
111 | |||
108 | #ifdef CONFIG_DEBUG_FS | 112 | #ifdef CONFIG_DEBUG_FS |
109 | struct dentry *debug_dir; | 113 | struct dentry *debug_dir; |
110 | struct dentry *debug_stats; | 114 | struct dentry *debug_stats; |