Received: by 10.223.176.46 with SMTP id f43csp3330873wra; Mon, 22 Jan 2018 12:14:47 -0800 (PST) X-Google-Smtp-Source: AH8x224/7iborJzriRG9DntPaco6DFYIzS4NP83zFSbh0kuZ7hLUk7e2ydbasZKjMlQRmRBIa7Iw X-Received: by 10.36.243.66 with SMTP id t2mr49678iti.26.1516652087325; Mon, 22 Jan 2018 12:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652087; cv=none; d=google.com; s=arc-20160816; b=iRV1Y/dHJMt3bCqGb8KJOwhwZ7JbHnAAUtJprOndFjj8kaJRsiGMu7z/kL7PEeWJxI m2oAUqKp3zuTIAHq7OUL0JvYYNSuhjffu8ppGCP5DXQREqIY1f9UPrKdWlr8PrSjTJjq Ks/c4+qSBIBRIq5KQDdjzRvoap6rIwe4o1OjRbwk62NrYXu9yFQLsK/3dvV7gGWjxiBU olQas8CEMMkPemm9RlmAdmal//rVq/39PsXx4UWxFpcwTqrqyavud1ZRj/2C5G3EZBV/ 3+56L5kj3GmuloW2qVyCmDBiqyKuSNMyfeNMzzOGS9pHriOmlwSIH/PD/h4H6ww/5ISz vp/g== 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=TftNcMt8keKO34qSAceyQucaO7QxbRRZX8wcZZfqoa8=; b=eLZ4wskUDvTu5H4cdOBF/YYgXQ/49QnxuaGeC36T3pzU8oGbc1czi+BS48Ivwub1SE ODrOvjjCDFJEgyfaDcJ45XMl/9lY+fpR0PHbveEkwHaWPpAYbEiGnf7V0inybgpWq4u3 ARk4SvFfvynPR9ZkCkFRb21gaPxiecNBe4wo6QGtoZIOGvB0JU14rHiQz0FOCeJBEvku pMdSVFR7ywn5P5t9gXzJRmYkqYjp9KYOAuSYG3WGeOfw5uyYgDWXlGTbL10CfO6IlEp0 61JVFkKlYdULDfUDGHONZS1q+YCdnvG26LFB0qTWstS5lPY2ym2ZcLAP320zNmRgMaVd RuOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bgZBjAoI; 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 1si6794095iox.329.2018.01.22.12.14.33; Mon, 22 Jan 2018 12:14:47 -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=bgZBjAoI; 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 S1751047AbeAVUOQ (ORCPT + 99 others); Mon, 22 Jan 2018 15:14:16 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:48293 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbeAVUOK (ORCPT ); Mon, 22 Jan 2018 15:14:10 -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=TftNcMt8keKO34qSAceyQucaO7QxbRRZX8wcZZfqoa8=; b=bgZBjAoI/w6lPMeLM1nPRtDd5 4lM1/+Gkg0ZHHrTPweaAMVvtZaZUsSFsvXBjP3OuTOCEdiDA3oV727DihYRRGi3JgESkSwXQT25Ey 7VcGLOlWHoYDyjDomysWrVXTUZCxlFYvsAdfujbMUdyAsCpcZ3JWCQWWZ5SxDzI+UEqvd/pOYUQKh V6RFjgX1Z3zSUMmv/G39Oxwh6LIocZIqdH/2hUliO95N5OPXx+SzHDdmMh2L+uca2y49WiuHJ7Sq3 1CqgcImMPJuJkD7NRA+wSyoiLBykG2QJXq8ag3PqwNmX8/QnFRDi+tCDUzOmspv8IY0OScie3Rffu ilPJOXUow==; 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 1ediTn-0007ik-RN; Mon, 22 Jan 2018 20:14:08 +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 25/36] net/sctp: convert to ->poll_mask Date: Mon, 22 Jan 2018 21:12:32 +0100 Message-Id: <20180122201243.31610-26-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 --- include/net/sctp/sctp.h | 3 +-- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/socket.c | 4 +--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 608d123ef25f..e7637f40547f 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -107,8 +107,7 @@ int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb); int sctp_inet_listen(struct socket *sock, int backlog); void sctp_write_space(struct sock *sk); void sctp_data_ready(struct sock *sk); -__poll_t sctp_poll(struct file *file, struct socket *sock, - poll_table *wait); +__poll_t sctp_poll_mask(struct socket *sock, __poll_t events); void sctp_sock_rfree(struct sk_buff *skb); void sctp_copy_sock(struct sock *newsk, struct sock *sk, struct sctp_association *asoc); diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 3b18085e3b10..aa1261216b51 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -971,7 +971,7 @@ static const struct proto_ops inet6_seqpacket_ops = { .socketpair = sock_no_socketpair, .accept = inet_accept, .getname = sctp_getname, - .poll = sctp_poll, + .poll_mask = sctp_poll_mask, .ioctl = inet6_ioctl, .listen = sctp_inet_listen, .shutdown = inet_shutdown, diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 6a38c2503649..13b7daafcca7 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1026,7 +1026,7 @@ static const struct proto_ops inet_seqpacket_ops = { .socketpair = sock_no_socketpair, .accept = inet_accept, .getname = inet_getname, /* Semantics are different. */ - .poll = sctp_poll, + .poll_mask = sctp_poll_mask, .ioctl = inet_ioctl, .listen = sctp_inet_listen, .shutdown = inet_shutdown, /* Looks harmless. */ diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 03d9d24b38ba..34a97c0985ff 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -7500,14 +7500,12 @@ int sctp_inet_listen(struct socket *sock, int backlog) * here, again, by modeling the current TCP/UDP code. We don't have * a good way to test with it yet. */ -__poll_t sctp_poll(struct file *file, struct socket *sock, poll_table *wait) +__poll_t sctp_poll_mask(struct socket *sock, __poll_t events) { struct sock *sk = sock->sk; struct sctp_sock *sp = sctp_sk(sk); __poll_t mask; - poll_wait(file, sk_sleep(sk), wait); - sock_rps_record_flow(sk); /* A TCP-style listening socket becomes readable when the accept queue -- 2.14.2