Whamcloud - gitweb
LU-4199 libcfs: Handle nodemask on UMP machines 19/9219/3
authorJames Simmons <uja.ornl@gmail.com>
Thu, 13 Feb 2014 01:06:40 +0000 (20:06 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 1 Mar 2014 02:32:57 +0000 (02:32 +0000)
commitcd37ceeab166f467f275619421a735ba5d2b380d
treedf7c3e700ccd57c45c05286abe511f1c7ca908de
parent4ea6a7a00a71330e40fa41c97152b93a0cab0397
LU-4199 libcfs: Handle nodemask on UMP machines

For UMP and SMP machines the struct cfs_cpt_table are
defined differently. In the case handled by this patch
nodemask is defined as a integer for the UMP case and
as a pointer for the SMP case. This will cause a problem
for ost_setup which reads the nodemask directly. Instead
we create a UMP version of cfs_cpt_nodemask and use that
in ost_setup.

Change-Id: I0dd80f79cf4589fc98182786d3f970432388f1fe
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Reviewed-on: http://review.whamcloud.com/9219
Tested-by: Jenkins
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <pkuelelixi@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
libcfs/libcfs/libcfs_cpu.c
lustre/ost/ost_handler.c