[PATCH 0/2] Add new wait_event macros to support lustre

From: NeilBrown
Date: Thu Dec 21 2017 - 22:12:40 EST

Lustre has its own l_wait_event() macro to support waiting.
Some uses can be converted to current wait_event macros, but others

Particularly it needs to be able to wait in TASK_IDLE state, and needs
exclusive waiters to be placed at the head of the queue.
These two patches add required functionalty to wait.h so that
lustre can be fully moved away from l_wait_event()



NeilBrown (2):
sched/wait: add wait_event_idle() functions.
sched/wait: add wait_event_idle_exclusive_lifo()

include/linux/wait.h | 170 +++++++++++++++++++++++++++++++++++++++++++++++++-
kernel/sched/wait.c | 3 +
2 files changed, 167 insertions(+), 6 deletions(-)