diff options
-rw-r--r-- | fs/eventfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/eventfd.c b/fs/eventfd.c index 91c0829a7035..2a701d593d35 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c | |||
@@ -51,7 +51,7 @@ int eventfd_signal(struct file *file, int n) | |||
51 | n = (int) (ULLONG_MAX - ctx->count); | 51 | n = (int) (ULLONG_MAX - ctx->count); |
52 | ctx->count += n; | 52 | ctx->count += n; |
53 | if (waitqueue_active(&ctx->wqh)) | 53 | if (waitqueue_active(&ctx->wqh)) |
54 | wake_up_locked(&ctx->wqh); | 54 | wake_up_locked_poll(&ctx->wqh, POLLIN); |
55 | spin_unlock_irqrestore(&ctx->wqh.lock, flags); | 55 | spin_unlock_irqrestore(&ctx->wqh.lock, flags); |
56 | 56 | ||
57 | return n; | 57 | return n; |
@@ -120,7 +120,7 @@ static ssize_t eventfd_read(struct file *file, char __user *buf, size_t count, | |||
120 | ucnt = (ctx->flags & EFD_SEMAPHORE) ? 1 : ctx->count; | 120 | ucnt = (ctx->flags & EFD_SEMAPHORE) ? 1 : ctx->count; |
121 | ctx->count -= ucnt; | 121 | ctx->count -= ucnt; |
122 | if (waitqueue_active(&ctx->wqh)) | 122 | if (waitqueue_active(&ctx->wqh)) |
123 | wake_up_locked(&ctx->wqh); | 123 | wake_up_locked_poll(&ctx->wqh, POLLOUT); |
124 | } | 124 | } |
125 | spin_unlock_irq(&ctx->wqh.lock); | 125 | spin_unlock_irq(&ctx->wqh.lock); |
126 | if (res > 0 && put_user(ucnt, (__u64 __user *) buf)) | 126 | if (res > 0 && put_user(ucnt, (__u64 __user *) buf)) |
@@ -169,7 +169,7 @@ static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t c | |||
169 | if (likely(res > 0)) { | 169 | if (likely(res > 0)) { |
170 | ctx->count += ucnt; | 170 | ctx->count += ucnt; |
171 | if (waitqueue_active(&ctx->wqh)) | 171 | if (waitqueue_active(&ctx->wqh)) |
172 | wake_up_locked(&ctx->wqh); | 172 | wake_up_locked_poll(&ctx->wqh, POLLIN); |
173 | } | 173 | } |
174 | spin_unlock_irq(&ctx->wqh.lock); | 174 | spin_unlock_irq(&ctx->wqh.lock); |
175 | 175 | ||