[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190311194622.GF12602@lst.de>
Date: Mon, 11 Mar 2019 20:46:22 +0100
From: Christoph Hellwig <hch@....de>
To: Al Viro <viro@...IV.linux.org.uk>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Eric Dumazet <eric.dumazet@...il.com>,
David Miller <davem@...emloft.net>,
Jason Baron <jbaron@...mai.com>, kgraul@...ux.ibm.com,
ktkhai@...tuozzo.com, kyeongdon.kim@....com,
Linux List Kernel Mailing <linux-kernel@...r.kernel.org>,
Netdev <netdev@...r.kernel.org>, pabeni@...hat.com,
syzkaller-bugs@...glegroups.com, xiyou.wangcong@...il.com,
Christoph Hellwig <hch@....de>,
zhengbin <zhengbin13@...wei.com>, bcrl@...ck.org,
linux-fsdevel@...r.kernel.org, linux-aio@...ck.org,
houtao1@...wei.com, yi.zhang@...wei.com
Subject: Re: [PATCH 6/8] move dropping ->ki_eventfd into iocb_destroy()
On Sun, Mar 10, 2019 at 07:08:20AM +0000, Al Viro wrote:
> From: Al Viro <viro@...iv.linux.org.uk>
>
> Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
Looks sensible, but a changelog would be nice.
> if (iocb->aio_flags & IOCB_FLAG_RESFD) {
> + struct eventfd_ctx *eventfd;
> /*
> * If the IOCB_FLAG_RESFD flag of aio_flags is set, get an
> * instance of the file* now. The file descriptor must be
> * an eventfd() fd, and will be signaled for each completed
> * event using the eventfd_signal() function.
> */
> + eventfd = eventfd_ctx_fdget((int) iocb->aio_resfd);
I don't think there is any point in the cast in either the old or new
code.
Powered by blists - more mailing lists