]> git.baikalelectronics.ru Git - kernel.git/commit
CPU hotplug, writeback: Don't call writeback_set_ratelimit() too often during hotplug
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Fri, 28 Sep 2012 12:27:49 +0000 (20:27 +0800)
committerFengguang Wu <fengguang.wu@intel.com>
Fri, 28 Sep 2012 12:27:49 +0000 (20:27 +0800)
commit747c55229ba15be6073ffddbc64f7f505d7d7f9e
treeab0abd6f9936db1441382f862028a4c22b7239e1
parente80ee03ff7d6d6eac439cf4c1a52f7acc0030977
CPU hotplug, writeback: Don't call writeback_set_ratelimit() too often during hotplug

The CPU hotplug callback related to writeback calls writeback_set_ratelimit()
during every state change in the hotplug sequence. This is unnecessary
since num_online_cpus() changes only once during the entire hotplug operation.

So invoke the function only once per hotplug, thereby avoiding the
unnecessary repetition of those costly calculations.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
mm/page-writeback.c