if (unlikely(obd_fail_loc && (_ret_ = obd_fail_check(id)))) { \
CERROR("obd_fail_timeout id %x sleeping for %d secs\n", \
(id), (secs)); \
- set_current_state(TASK_UNINTERRUPTIBLE); \
cfs_schedule_timeout(CFS_TASK_UNINT, \
cfs_time_seconds(secs)); \
- set_current_state(TASK_RUNNING); \
CERROR("obd_fail_timeout id %x awake\n", (id)); \
} \
_ret_; \
if (unlikely(obd_fail_loc && (_ret_ = obd_fail_check(id)))) { \
CERROR("obd_fail_timeout id %x sleeping for %d ms\n", \
(id), (ms)); \
- set_current_state(TASK_UNINTERRUPTIBLE); \
cfs_schedule_timeout(CFS_TASK_UNINT, \
cfs_time_seconds(ms)/1000); \
- set_current_state(TASK_RUNNING); \
CERROR("obd_fail_timeout id %x awake\n", (id)); \
} \
_ret_; \
/* XXX Bug 3413; wait for a bit to ensure the BL callback has
* happened before calling ldlm_namespace_free() */
- set_current_state (TASK_UNINTERRUPTIBLE);
cfs_schedule_timeout (CFS_TASK_UNINT, cfs_time_seconds(1));
ldlm_namespace_free(obd->obd_namespace, NULL, obd->obd_force);