lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM4PR07MB1714F63B2A751F97C3969C179A110@AM4PR07MB1714.eurprd07.prod.outlook.com>
Date:   Wed, 10 Jan 2018 19:32:21 +0000
From:   Jon Maloy <jon.maloy@...csson.com>
To:     Christoph Hellwig <hch@....de>,
        "viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>
CC:     Avi Kivity <avi@...lladb.com>,
        "linux-aio@...ck.org" <linux-aio@...ck.org>,
        "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-api@...r.kernel.org" <linux-api@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 13/32] net/tipc: convert to ->poll_mask

Acked.
///jon

> -----Original Message-----
> From: netdev-owner@...r.kernel.org [mailto:netdev-
> owner@...r.kernel.org] On Behalf Of Christoph Hellwig
> Sent: Wednesday, January 10, 2018 10:59
> To: viro@...iv.linux.org.uk
> Cc: Avi Kivity <avi@...lladb.com>; linux-aio@...ck.org; linux-
> fsdevel@...r.kernel.org; netdev@...r.kernel.org; linux-
> api@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: [PATCH 13/32] net/tipc: convert to ->poll_mask
> 
> Signed-off-by: Christoph Hellwig <hch@....de>
> ---
>  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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ