staging: lustre: fix 'error handling' issues for libcfs workitem.c
[deliverable/linux.git] / drivers / staging / lustre / lustre / libcfs / workitem.c
index 6d988084dbb658404f317532f0036b1d6e1d981e..b57acbfb061b1aab6f40578731c66ef06cedc455 100644 (file)
@@ -225,7 +225,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);
 
This page took 0.026701 seconds and 5 git commands to generate.