Received: by 10.223.176.46 with SMTP id f43csp3336498wra; Mon, 22 Jan 2018 12:20:51 -0800 (PST) X-Google-Smtp-Source: AH8x225wSgcF5RXv98iwmpjhnRmjUScxQT3GgSC29/6lAqE5OxeK8verJ3JmVlhpmViE7jmNnjH0 X-Received: by 10.36.14.86 with SMTP id 83mr15489ite.77.1516652451554; Mon, 22 Jan 2018 12:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652451; cv=none; d=google.com; s=arc-20160816; b=IbEOFFB8GbPLVBdm6V1s6JDz1yvuRGQ3qc8z758WQxhTxBDbqWqkAtpuA97PWrj+ap mfIa6DpgLU6AnK6SJ2wv52zPuM5i1vDCRAnyrE4KCVopaHVJB7eBKA9Lpe4tlKaba5q4 CY9WDPdFuEoe9VzXZ8XOsXPqn5NvMpHeR/bpniN89d5LVBxBlQ7F+ZFiM0eBNJoqhp6B PDVMUXOhSQ2tjSY0CeZ7uQeNk/hY1T+kURQZnFZAVT/hyuKcWG2FYbIg8/1wEeRWUepn SYm8TdjtS+qmbJ28GXxDsGvf7WAXkZmNB9sI2eB4va275fW96aXKsAryHV2xsW9jJak8 sxXg== 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=EZ876HVjeKQiJVCEKdk9M2pL55AiKOW0LXeTjXvPEro=; b=AZO6/1OfnNHmHDKrHaAjssno1CSOsT0ikh/AHYdLgJsh2ZDO2FV2H72gqAQGeqJq47 EaKk81Q7p/S9DlZpjKleBBkNl9trevQ9yjrAOtnUAkUZk4nyLC05vx6cIPWqiQGVR+PV xqGarw8cMpQBDNN33jv4/aQG309l3xzCTMTNomvNMFD9qN9Z11QvJoNYumkCcmie7zsE 52TV6lgXIoMyxAl952cYMogc6jVHc6ygxgc+iCTRKh0qKx9mPmOzKeYQc12jwlBRN35y KUz0lWfjBO5L/bRzAwIiIvfm2ewthbzg/ru+GxI8VzZMhH5cFW8K0O1gsFeAffNYlDB6 hY8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KlEwFYge; 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 g82si13707526iog.34.2018.01.22.12.20.38; Mon, 22 Jan 2018 12:20:51 -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=KlEwFYge; 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 S1751732AbeAVUUR (ORCPT + 99 others); Mon, 22 Jan 2018 15:20:17 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:40809 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbeAVUOG (ORCPT ); Mon, 22 Jan 2018 15:14:06 -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=EZ876HVjeKQiJVCEKdk9M2pL55AiKOW0LXeTjXvPEro=; b=KlEwFYgebMLcL8KDItWFLFSbs AM1o4+nN5XHFwvpsu4WJruhrqzPPUdBEzEjrwcewgw9mN1Ki9tMl64LqUNDzNP8InhoS59iPD8pGY NN0T6T4mZO6YrUWkvoznZeokJQQ9a6dnKamlGaxtRvtVwdjE0rv5gyBnqU/teUz3ki6g8Lqykt+tQ B+JDJARX8eb81ef7KDjWE+S1bPbQDPrOKmFuuBJftt0wsUrsOEqoOOs9faLy4HJogyaiHmdc4Qyl+ kMEPs8qVIzWA8CiI8zgGmytcp73uhZEhjedE1LZ52vSHA5tjL46LRWfj2sJs/MndLvdbL9vEd3tsB ZpHZScisw==; 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 1ediTk-0007iO-Ln; Mon, 22 Jan 2018 20:14:05 +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 24/36] net/tipc: convert to ->poll_mask Date: Mon, 22 Jan 2018 21:12:31 +0100 Message-Id: <20180122201243.31610-25-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/tipc/socket.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/tipc/socket.c b/net/tipc/socket.c index fcbd6489a8b5..527d113c38b0 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -693,10 +693,9 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr, } /** - * tipc_poll - read and possibly block on pollmask + * tipc_poll - read pollmask * @file: file structure associated with the socket * @sock: socket for which to calculate the poll bits - * @wait: ??? * * Returns pollmask value * @@ -710,16 +709,13 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr, * imply that the operation will succeed, merely that it should be performed * and will not block. */ -static __poll_t tipc_poll(struct file *file, struct socket *sock, - poll_table *wait) +static __poll_t tipc_poll_mask(struct socket *sock, __poll_t events) { struct sock *sk = sock->sk; struct tipc_sock *tsk = tipc_sk(sk); struct tipc_group *grp = tsk->group; __poll_t revents = 0; - sock_poll_wait(file, sk_sleep(sk), wait); - if (sk->sk_shutdown & RCV_SHUTDOWN) revents |= POLLRDHUP | POLLIN | POLLRDNORM; if (sk->sk_shutdown == SHUTDOWN_MASK) @@ -3005,7 +3001,7 @@ static const struct proto_ops msg_ops = { .socketpair = tipc_socketpair, .accept = sock_no_accept, .getname = tipc_getname, - .poll = tipc_poll, + .poll_mask = tipc_poll_mask, .ioctl = tipc_ioctl, .listen = sock_no_listen, .shutdown = tipc_shutdown, @@ -3026,7 +3022,7 @@ static const struct proto_ops packet_ops = { .socketpair = tipc_socketpair, .accept = tipc_accept, .getname = tipc_getname, - .poll = tipc_poll, + .poll_mask = tipc_poll_mask, .ioctl = tipc_ioctl, .listen = tipc_listen, .shutdown = tipc_shutdown, @@ -3047,7 +3043,7 @@ static const struct proto_ops stream_ops = { .socketpair = tipc_socketpair, .accept = tipc_accept, .getname = tipc_getname, - .poll = tipc_poll, + .poll_mask = tipc_poll_mask, .ioctl = tipc_ioctl, .listen = tipc_listen, .shutdown = tipc_shutdown, -- 2.14.2