Whamcloud - gitweb
LU-4199 libcfs: Handle nodemask on UMP machines
[fs/lustre-release.git] / lustre / ost / ost_handler.c
index a39381f..e14c61a 100644 (file)
@@ -175,7 +175,7 @@ static int ost_setup(struct obd_device *obd, struct lustre_cfg* lcfg)
                GOTO(out_service, rc);
         }
 
-       mask = cfs_cpt_table->ctb_nodemask;
+       mask = cfs_cpt_nodemask(cfs_cpt_table, CFS_CPT_ANY);
        /* event CPT feature is disabled in libcfs level by set partition
         * number to 1, we still want to set node affinity for io service */
        if (cfs_cpt_number(cfs_cpt_table) == 1 && nodes_weight(*mask) > 1) {