Commit 6a0fb306 authored by Al Viro's avatar Al Viro

new helper: wait_event_killable_exclusive()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6d4e56ce
...@@ -600,6 +600,19 @@ do { \ ...@@ -600,6 +600,19 @@ do { \
__ret; \ __ret; \
}) })
#define __wait_event_killable_exclusive(wq, condition) \
___wait_event(wq, condition, TASK_KILLABLE, 1, 0, \
schedule())
#define wait_event_killable_exclusive(wq, condition) \
({ \
int __ret = 0; \
might_sleep(); \
if (!(condition)) \
__ret = __wait_event_killable_exclusive(wq, condition); \
__ret; \
})
#define __wait_event_freezable_exclusive(wq, condition) \ #define __wait_event_freezable_exclusive(wq, condition) \
___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \ ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment