mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Add new wait_event macros to support lustre
@ 2017-12-22  3:11 NeilBrown
  2017-12-22  3:11 ` [PATCH 2/2] sched/wait: add wait_event_idle_exclusive_lifo() NeilBrown
  2017-12-22  3:11 ` [PATCH 1/2] sched/wait: add wait_event_idle() functions NeilBrown
  0 siblings, 2 replies; 8+ messages in thread
From: NeilBrown @ 2017-12-22  3:11 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: linux-kernel, lustre

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

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()

Thanks,
NeilBrown

---

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(-)

--
Signature

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-22 23:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-22  3:11 [PATCH 0/2] Add new wait_event macros to support lustre NeilBrown
2017-12-22  3:11 ` [PATCH 2/2] sched/wait: add wait_event_idle_exclusive_lifo() NeilBrown
2017-12-22  8:08   ` Peter Zijlstra
2017-12-22  8:22     ` Peter Zijlstra
2017-12-22 23:10     ` NeilBrown
2017-12-22  3:11 ` [PATCH 1/2] sched/wait: add wait_event_idle() functions NeilBrown
2017-12-22  8:06   ` Peter Zijlstra
2017-12-22 22:59     ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®