#include <libcfs/darwin/darwin-prim.h>
#include <lnet/lnet.h>
-#define our_cond_resched() cfs_schedule_timeout(CFS_TASK_INTERRUPTIBLE, 1)
-
#ifdef CONFIG_SMP
#define LASSERT_SPIN_LOCKED(lock) do {} while(0) /* XXX */
#else
cfs_hash_runlock(hs);
func(obj, data);
(void)cfs_hash_put(hs, hnode);
+ cfs_cond_resched();
goto restart;
}
cfs_write_unlock(&hsb->hsb_rwlock);
return;
}
-int cfs_need_resched(void)
-{
- return 0;
-}
-
-void cfs_cond_resched(void)
-{
-}
-
/*
* thread cpu affinity routines
*/
spin_unlock_irqrestore(&kibnal_data.kib_sched_lock,
flags);
- our_cond_resched();
+ cfs_cond_resched();
busy_loops = 0;
spin_lock_irqsave(&kibnal_data.kib_sched_lock, flags);
!list_empty(&kibnal_data.kib_sched_rxq) ||
kibnal_data.kib_shutdown);
} else {
- our_cond_resched();
+ cfs_cond_resched();
}
spin_lock_irqsave(&kibnal_data.kib_sched_lock,
spin_unlock_irqrestore(&kibnal_data.kib_sched_lock,
flags);
- our_cond_resched();
+ cfs_cond_resched();
busy_loops = 0;
spin_lock_irqsave(&kibnal_data.kib_sched_lock, flags);
if (export != NULL)
class_export_destroy(export);
+ cfs_cond_resched();
} while (import != NULL || export != NULL);
EXIT;
}