From: NeilBrown <neilb@suse.com>
To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.org, lustre <lustre-devel@lists.lustre.org>
Subject: [PATCH 0/2] Add new wait_event macros to support lustre
Date: Fri, 22 Dec 2017 14:11:03 +1100 [thread overview]
Message-ID: <151391203805.23157.8332034037737592042.stgit@noble> (raw)
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
next reply other threads:[~2017-12-22 3:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 3:11 NeilBrown [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=151391203805.23157.8332034037737592042.stgit@noble \
--to=neilb@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lustre-devel@lists.lustre.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®