Lines Matching defs:condition

155 static void lock_condition(journal *jnl, boolean_t *condition, const char *condition_name);
156 static void wait_condition(journal *jnl, boolean_t *condition, const char *condition_name);
157 static void unlock_condition(journal *jnl, boolean_t *condition);
3718 * asynchronously, it could have encountered a condition
3754 * because we hold the 'flushing' condition variable for the duration
4219 * 'flush_aborted' is protected by the flushing condition... we need to
4220 * set it before dropping the condition so that it will be
4222 * aborted condition so that we can drop the 'flushing' condition
4225 * waiting for the 'flushing' condition to clear...
4248 lock_condition(journal *jnl, boolean_t *condition, const char *condition_name)
4251 KERNEL_DEBUG(0xbbbbc020|DBG_FUNC_START, jnl, condition, 0, 0, 0);
4255 while (*condition == TRUE)
4256 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
4258 *condition = TRUE;
4261 KERNEL_DEBUG(0xbbbbc020|DBG_FUNC_END, jnl, condition, 0, 0, 0);
4265 wait_condition(journal *jnl, boolean_t *condition, const char *condition_name)
4268 if (*condition == FALSE)
4271 KERNEL_DEBUG(0xbbbbc02c|DBG_FUNC_START, jnl, condition, 0, 0, 0);
4275 while (*condition == TRUE)
4276 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
4280 KERNEL_DEBUG(0xbbbbc02c|DBG_FUNC_END, jnl, condition, 0, 0, 0);
4284 unlock_condition(journal *jnl, boolean_t *condition)
4288 *condition = FALSE;
4289 wakeup(condition);
4304 // on when the abort condition was detected) and mark them