Whamcloud - gitweb
LU-6285 libcfs: Do not unnecessarily copy cpumask 04/13904/3
authorOleg Drokin <oleg.drokin@intel.com>
Fri, 27 Feb 2015 07:57:07 +0000 (02:57 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 6 Apr 2015 01:03:55 +0000 (01:03 +0000)
commitb4f41e5fef3ff644f9adb95921329ef59e1e3e74
tree12946dc3e1b914ef3571ac8d6b6d9e184a4653e5
parent1b209744469c5c4296aa496de114d53d03aaa071
LU-6285 libcfs: Do not unnecessarily copy cpumask

Copying a mask just to calculate a static value of siblings
is overkill, esp. if CPUMASK_OFFSTACK is set and the mask is huge,
additionally that'll workaround the incorrectness of kernel code
dealing with such a code until that is actually fixed upstream.

Change-Id: I860cc7d5b54adcde2e7622bfbc64b4e27046b083
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/13904
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
libcfs/libcfs/linux/linux-cpu.c