Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82974
b: refs/heads/master
c: 0ccf831
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed Feb 5, 2008
1 parent abcb38c commit 759cd84
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96cf49a2c13e8dcf442abaadf6645f6a1fb3ae92
refs/heads/master: 0ccf831cbee94df9c5006dd46248c0f07847dd7c
2 changes: 1 addition & 1 deletion trunk/fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static void ep_poll_safewake(struct poll_safewake *psw, wait_queue_head_t *wq)
spin_unlock_irqrestore(&psw->lock, flags);

/* Do really wake up now */
wake_up(wq);
wake_up_nested(wq, 1 + wake_nests);

/* Remove the current task from the list */
spin_lock_irqsave(&psw->lock, flags);
Expand Down
16 changes: 16 additions & 0 deletions trunk/include/linux/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ wait_queue_head_t *FASTCALL(bit_waitqueue(void *, int));
#define wake_up_interruptible_all(x) __wake_up(x, TASK_INTERRUPTIBLE, 0, NULL)
#define wake_up_interruptible_sync(x) __wake_up_sync((x), TASK_INTERRUPTIBLE, 1)

#ifdef CONFIG_DEBUG_LOCK_ALLOC
/*
* macro to avoid include hell
*/
#define wake_up_nested(x, s) \
do { \
unsigned long flags; \
\
spin_lock_irqsave_nested(&(x)->lock, flags, (s)); \
wake_up_locked(x); \
spin_unlock_irqrestore(&(x)->lock, flags); \
} while (0)
#else
#define wake_up_nested(x, s) wake_up(x)
#endif

#define __wait_event(wq, condition) \
do { \
DEFINE_WAIT(__wait); \
Expand Down

0 comments on commit 759cd84

Please sign in to comment.