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);
3615 * asynchronously, it could have encountered a condition
3651 * because we hold the 'flushing' condition variable for the duration
4113 * 'flush_aborted' is protected by the flushing condition... we need to
4114 * set it before dropping the condition so that it will be
4116 * aborted condition so that we can drop the 'flushing' condition
4119 * waiting for the 'flushing' condition to clear...
4142 lock_condition(journal *jnl, boolean_t *condition, const char *condition_name)
4145 KERNEL_DEBUG(0xbbbbc020|DBG_FUNC_START, jnl, condition, 0, 0, 0);
4149 while (*condition == TRUE)
4150 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
4152 *condition = TRUE;
4155 KERNEL_DEBUG(0xbbbbc020|DBG_FUNC_END, jnl, condition, 0, 0, 0);
4159 wait_condition(journal *jnl, boolean_t *condition, const char *condition_name)
4162 if (*condition == FALSE)
4165 KERNEL_DEBUG(0xbbbbc02c|DBG_FUNC_START, jnl, condition, 0, 0, 0);
4169 while (*condition == TRUE)
4170 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
4174 KERNEL_DEBUG(0xbbbbc02c|DBG_FUNC_END, jnl, condition, 0, 0, 0);
4178 unlock_condition(journal *jnl, boolean_t *condition)
4182 *condition = FALSE;
4183 wakeup(condition);
4198 // on when the abort condition was detected) and mark them