Whamcloud - gitweb
LU-3427 build: fix 'error handling' issues
[fs/lustre-release.git] / libcfs / libcfs / workitem.c
index 5b66e60..60c037b 100644 (file)
@@ -250,7 +250,9 @@ cfs_wi_scheduler (void *arg)
 
        /* CPT affinity scheduler? */
        if (sched->ws_cptab != NULL)
-               cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt);
+               if (cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt) != 0)
+                       CWARN("Failed to bind %s on CPT %d\n",
+                               sched->ws_name, sched->ws_cpt);
 
        spin_lock(&cfs_wi_data.wi_glock);