Lines Matching defs:wstate
559 * If wstate is WRITER_HANDOFF, it will make sure that either the handoff
563 enum writer_wait_state wstate)
573 if (has_handoff && wstate == WRITER_NOT_FIRST)
579 if (has_handoff || (wstate != WRITER_HANDOFF))
1140 enum writer_wait_state wstate;
1170 wstate = list_empty(&sem->wait_list) ? WRITER_FIRST : WRITER_NOT_FIRST;
1175 if (wstate == WRITER_NOT_FIRST) {
1211 if (rwsem_try_write_lock(sem, wstate)) {
1226 if (wstate == WRITER_HANDOFF &&
1242 if (wstate == WRITER_HANDOFF)
1245 if ((wstate == WRITER_NOT_FIRST) &&
1247 wstate = WRITER_FIRST;
1257 if ((wstate == WRITER_FIRST) && (rt_task(current) ||
1259 wstate = WRITER_HANDOFF;
1280 if (unlikely(wstate == WRITER_HANDOFF))