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: 9416213 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 3841360585 for ; Mon, 7 Nov 2016 23:17:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B05428E70 for ; Mon, 7 Nov 2016 23:17:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FECC28E73; Mon, 7 Nov 2016 23:17:57 +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 BD90628E70 for ; Mon, 7 Nov 2016 23:17:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752679AbcKGXRe (ORCPT ); Mon, 7 Nov 2016 18:17:34 -0500 Received: from rere.qmqm.pl ([84.10.57.10]:36902 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbcKGXRc (ORCPT ); Mon, 7 Nov 2016 18:17:32 -0500 Received: by rere.qmqm.pl (Postfix, from userid 1000) id 039F9610F; Tue, 8 Nov 2016 00:10:18 +0100 (CET) Message-Id: In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 2/3] signalfd: 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/signalfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/signalfd.c b/fs/signalfd.c index 270221f..b7eff4a 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c @@ -68,7 +68,7 @@ static unsigned int signalfd_poll(struct file *file, poll_table *wait) if (next_signal(¤t->pending, &ctx->sigmask) || next_signal(¤t->signal->shared_pending, &ctx->sigmask)) - events |= POLLIN; + events |= POLLIN | POLLRDNORM; spin_unlock_irq(¤t->sighand->siglock); return events;