diff mbox

[3/3] timerfd: make POLLRDNORM working

Message ID 080615597c1b2999e0235e7194cdf44943ee8812.1478559566.git.mirq-linux@rere.qmqm.pl (mailing list archive)
State New, archived
Headers show

Commit Message

Michał Mirosław Nov. 7, 2016, 11:10 p.m. UTC
poll(2) suggests this should be equivalent to POLLIN.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 fs/timerfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/fs/timerfd.c b/fs/timerfd.c
index 9ae4abb..9ef87a7 100644
--- a/fs/timerfd.c
+++ b/fs/timerfd.c
@@ -226,7 +226,7 @@  static unsigned int timerfd_poll(struct file *file, poll_table *wait)
 
 	spin_lock_irqsave(&ctx->wqh.lock, flags);
 	if (ctx->ticks)
-		events |= POLLIN;
+		events |= POLLIN | POLLRDNORM;
 	spin_unlock_irqrestore(&ctx->wqh.lock, flags);
 
 	return events;