Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1393980imc; Mon, 11 Mar 2019 12:47:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEVUe6/ghBl1PMdCHN894pudO0Tsi0Yo81mOGFD4zyv8897ELgzpLxjbwuZTCu3mXCKmxy X-Received: by 2002:a65:5181:: with SMTP id h1mr31662442pgq.422.1552333626603; Mon, 11 Mar 2019 12:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552333626; cv=none; d=google.com; s=arc-20160816; b=Eb24sS5j0uhvI9ThT+mgzC5Ou8w42GmW4NVYznZHx2ZCCRGQm6hZL3mpactg3nm4RT 4PZlCLLyXA4OB9Xtbvou6ITdeIAo6ofJ5lfe/+n5p/IFa5PNXZ3Cy1vfKzAqtjeKMlyg 5QZfTzPzYPGXNgmuU4EHN9NmvUxMfsjyy4tBSspccZb4khrFYcelGQZ3wvIpbqMd/lwW VcidbFLDvZbNjM+qBoag6GCHVsQfS/fCSz8UPpyKsSB8RhV2qNQ3qtYHZuoIsiL/qGPN /MF+ySwInU+BpFCVki77a+Oyjxh97qjr4Q2pQC5CX2j+5QFOlvs4FhM6JhayMFre73LB BqSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FO8g8/4F+5miHI9KpVSim6MAFZBMk9o/dT/DgikUd2k=; b=JcgNLsp3gnRWAeHesb97gWOjFKnFPC6csFQMOtJdJoa16QvgvCZ/Ftk3yXhoE1/On7 Fw063KJaZAEaO6goVFVwFE1e4asND0QABc7mNXIACEe2BxWsKqt34T+kSY4A9vdtRlLd y+uDEMHk2dhNOLD+TUGxaZjWdD0kyFwz//HR8ybeGjjqkwuVsgruTwOwI1qZoqNel844 nAC/hBjWaCuGdsAzZN3/GhfiFUSuBvUYlkkz/GIRSnx8OXbTE9KK7r0A36zvZZeXulah 89vKDONrpI+T8litm3CIu26ET5TcGb4L1gyvj35TEpIArdwjW57LW1NDpr/EYLUCUlqb Q3rQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c13si5864384pgj.301.2019.03.11.12.46.51; Mon, 11 Mar 2019 12:47:06 -0700 (PDT) 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; 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 S1728008AbfCKTq2 (ORCPT + 99 others); Mon, 11 Mar 2019 15:46:28 -0400 Received: from verein.lst.de ([213.95.11.211]:43219 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbfCKTq2 (ORCPT ); Mon, 11 Mar 2019 15:46:28 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id BA60C68CEC; Mon, 11 Mar 2019 20:46:22 +0100 (CET) Date: Mon, 11 Mar 2019 20:46:22 +0100 From: Christoph Hellwig To: Al Viro Cc: Linus Torvalds , Eric Dumazet , David Miller , Jason Baron , kgraul@linux.ibm.com, ktkhai@virtuozzo.com, kyeongdon.kim@lge.com, Linux List Kernel Mailing , Netdev , pabeni@redhat.com, syzkaller-bugs@googlegroups.com, xiyou.wangcong@gmail.com, Christoph Hellwig , zhengbin , bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, houtao1@huawei.com, yi.zhang@huawei.com Subject: Re: [PATCH 6/8] move dropping ->ki_eventfd into iocb_destroy() Message-ID: <20190311194622.GF12602@lst.de> References: <20190310070606.GA10138@ZenIV.linux.org.uk> <20190310070822.11564-1-viro@ZenIV.linux.org.uk> <20190310070822.11564-6-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190310070822.11564-6-viro@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 10, 2019 at 07:08:20AM +0000, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro 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.