Received: by 10.223.176.46 with SMTP id f43csp3334219wra; Mon, 22 Jan 2018 12:18:15 -0800 (PST) X-Google-Smtp-Source: AH8x226e8me04aEAWVLW+rj7VLkFc5yilBC/hDm3M9dMJLf5sLdg4qc4qAuUziD6My2aJoyuUHzC X-Received: by 10.36.2.69 with SMTP id 66mr87219itu.117.1516652295869; Mon, 22 Jan 2018 12:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652295; cv=none; d=google.com; s=arc-20160816; b=x8chHgP61h5F6erlz8SsIJ7rd8ADQGl6LYHAAbXZeoJI0DsShb05MUSRm8cVbi2Qw7 +4loxf1kRwVdk8M5q17NCjCf1T53nIWYP8FWmRG95338Ovw/3dev27+0Dv7TeAeWEAYv IcQoL2mK5FizF5G4o+AITtkeeVWihlKcuIlGCIZuLuFnFMlUFHWDX/Fn8GItKcdcvnqi Ny/E5qD0YuG2gpy3YmulcGUQjxnBqwlY8emtulaBPFIqG/P6O0l5vsOhUaANDpBF541J nDHi8fT3Jl+nGxYDmY76e5jDQzG+vUB9UYwboTNo6N2p5YyGxyeDQWuW09i7OCvdZDYe gRtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qWy9TQSC0Hjoxl1auJIokB+QI/IPNtViSWdVeXWxw7Y=; b=TuzrbV3wo5ACxFpeqvSqMPm1X056elgYpIG0DVGMXIgelKyj53aFf0JUovVKaoAAt0 0bgI/T2GVzzK5MDYSp+odUslLuRLHkEYChEHE6JEAuatPoYf/w/CRLDcWl4hw0QmF5m9 dqrF8J3wnVk8jZ3kfJNiQlODY4VhPn1gLkeadehEgJicgowYKKwIoQsqDyRnKWmsNscF ZbHyzHMhFl5TVDoCROn5qphg6f8rjcfs4syGcD9aGkST4ou64N7gLBUcnM1UXk8invi/ 8tVsZGX/c6RZoRFzxWd/sVB6uYVztm7Fhtt9jR113jvgrTmuMhY+ABloufM10TDW6j+j FvFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=suMZnvoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j34si13667533iod.160.2018.01.22.12.18.02; Mon, 22 Jan 2018 12:18:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=suMZnvoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752004AbeAVUR0 (ORCPT + 99 others); Mon, 22 Jan 2018 15:17:26 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:37985 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751846AbeAVUO2 (ORCPT ); Mon, 22 Jan 2018 15:14:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qWy9TQSC0Hjoxl1auJIokB+QI/IPNtViSWdVeXWxw7Y=; b=suMZnvoW+16DBsIMaDNfx0sGS AAlI9dKuFIkVf8Go5NIIatvsngo/6TN5tQJvaAC7EYmQqKhdNw8eCoYR+6EMqS+QjpE3RgnpdqWUi yCeUx94gT6f0G36G835InM7bOfUQaY/wcnLsR4EiWLwkIxsEbA/SUNO1lpNRs8HSk7LY2F99nRBbV fWoiZCAY3dzoSBz0goUEPiLc+bujuwoc422WDyofSA6Eq/8IxqH2g4nPIwOetbk1DFOx715e3phsi HHg9GwjXbrwcWC+ywCQaRE2TTMEroadVDMNm4U8koTtmL6qyfw37qhGROgaDHy3Pd2DKdPcdhMEi3 4QTLWksFA==; Received: from 178.114.226.247.wireless.dyn.drei.com ([178.114.226.247] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ediU6-0007y2-I5; Mon, 22 Jan 2018 20:14:27 +0000 From: Christoph Hellwig To: viro@zeniv.linux.org.uk Cc: Avi Kivity , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/36] net/rxrpc: convert to ->poll_mask Date: Mon, 22 Jan 2018 21:12:38 +0100 Message-Id: <20180122201243.31610-32-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180122201243.31610-1-hch@lst.de> References: <20180122201243.31610-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- net/rxrpc/af_rxrpc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 21ad6a3a465c..46d393ef99e0 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -729,15 +729,11 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname, /* * permit an RxRPC socket to be polled */ -static __poll_t rxrpc_poll(struct file *file, struct socket *sock, - poll_table *wait) +static __poll_t rxrpc_poll_mask(struct socket *sock, __poll_t events) { struct sock *sk = sock->sk; struct rxrpc_sock *rx = rxrpc_sk(sk); - __poll_t mask; - - sock_poll_wait(file, sk_sleep(sk), wait); - mask = 0; + __poll_t mask = 0; /* the socket is readable if there are any messages waiting on the Rx * queue */ @@ -940,7 +936,7 @@ static const struct proto_ops rxrpc_rpc_ops = { .socketpair = sock_no_socketpair, .accept = sock_no_accept, .getname = sock_no_getname, - .poll = rxrpc_poll, + .poll_mask = rxrpc_poll_mask, .ioctl = sock_no_ioctl, .listen = rxrpc_listen, .shutdown = rxrpc_shutdown, -- 2.14.2