Whamcloud - gitweb
LU-4454 libcfs: warn if all HTs in a core are gone
authorLiang Zhen <liang.zhen@intel.com>
Wed, 8 Jan 2014 06:51:17 +0000 (14:51 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 14 Feb 2014 16:35:28 +0000 (11:35 -0500)
commit3b5c74aa80c8171f3bb99ccb00cf01e666120c08
tree6b21d018a51c88c919177d330c50d32a94eb73fd
parent53f9aa2f71f23542bec6ae2b171c608e3f8e1138
LU-4454 libcfs: warn if all HTs in a core are gone

libcfs cpu partition can't support CPU hotplug, but it is safe
when plug-in new CPU or enabling/disabling hyper-threading.
It has potential risk only if plug-out CPU because it may break CPU
affinity of Lustre threads.

Current libcfs will print warning for all CPU notification, this
patch changed this behavior and only output warning when we lost all
HTs in a CPU core which may have broken affinity of Lustre threads.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: I62267b62871c129beeb1593c4f69e7b81a79999d
Reviewed-on: http://review.whamcloud.com/8770
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
libcfs/libcfs/linux/linux-cpu.c