]> git.openfabrics.org - ~emulex/infiniband.git/commit
bdi: add a user-tunable cpu_list for the bdi flusher threads
authorJeff Moyer <jmoyer@redhat.com>
Wed, 5 Dec 2012 19:17:21 +0000 (20:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Dec 2012 19:17:21 +0000 (20:17 +0100)
commit8fa72d234da9b6b473bbb1f74d533663e4996e6b
tree536b8d2cf5aa3f0baee3aa0d89e602733be3df56
parentc304a51bf42a7ce48f430a371e1213472c89e13d
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>
include/linux/backing-dev.h
mm/backing-dev.c