From patchwork Mon Nov 7 23:10:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 9416211 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F30D660721 for ; Mon, 7 Nov 2016 23:17:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5CC628C1D for ; Mon, 7 Nov 2016 23:17:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA8EB28E75; Mon, 7 Nov 2016 23:17:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5836728E70 for ; Mon, 7 Nov 2016 23:17:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbcKGXRb (ORCPT ); Mon, 7 Nov 2016 18:17:31 -0500 Received: from rere.qmqm.pl ([84.10.57.10]:36906 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbcKGXR1 (ORCPT ); Mon, 7 Nov 2016 18:17:27 -0500 X-Greylist: delayed 366 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Nov 2016 18:17:27 EST Received: by rere.qmqm.pl (Postfix, from userid 1000) id 3186A6110; Tue, 8 Nov 2016 00:10:18 +0100 (CET) Message-Id: <080615597c1b2999e0235e7194cdf44943ee8812.1478559566.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 3/3] timerfd: make POLLRDNORM working MIME-Version: 1.0 To: linux-fsdevel@vger.kernel.org Cc: Alexander Viro Date: Tue, 8 Nov 2016 00:10:18 +0100 (CET) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP poll(2) suggests this should be equivalent to POLLIN. Signed-off-by: Michał Mirosław --- 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;