Whamcloud - gitweb
LU-4454 libcfs: warn if all HTs in a core are gone 70/8770/3
authorLiang Zhen <liang.zhen@intel.com>
Wed, 8 Jan 2014 06:51:17 +0000 (14:51 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 15 Jan 2014 00:51:11 +0000 (00:51 +0000)
commit0046eb8f66e906648dd0695fa7d6edfa6f301485
tree5d12d7f94c6484b8d32e833c44bb85a17b553775
parent035f3e4bf7532839dd88a4ae330fd67542e17cdd
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