[PATCH 3/3] timerfd: make POLLRDNORM working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



poll(2) suggests this should be equivalent to POLLIN.

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

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;
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux