Received: by 10.223.148.5 with SMTP id 5csp7825226wrq; Thu, 18 Jan 2018 10:01:08 -0800 (PST) X-Google-Smtp-Source: ACJfBosfqAVaTrt2iOHKYs0xAF7qkjYvZ/Ig+zFtClxWYptyQRlALbjxLVLwuvwEJAcbB4FfMpo2 X-Received: by 10.98.144.79 with SMTP id a76mr23234482pfe.15.1516298468422; Thu, 18 Jan 2018 10:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516298468; cv=none; d=google.com; s=arc-20160816; b=NnjDLDaA6MFCz7IPTNcs1mfU0v0vGDys3RdM1DsOCnq5FqflOSo9uefvML9A9ZuCxD W11s3g+oJPUknC9zv3Ds8tgOg32CPfQrXML8DAk5Wpj6jCoJiyphadid5HHincT47tVq /m5/HP1bzgYAOCd+hwzNUHRBNye+xlADYJ6khUdCNoiTozLAXlE128m6AxHxhqNu1MzH 5Vmg44mKFQW2MrGi3UMhde6p8OEiUOJ2UnI1sv0vykELOEF5abrsSRuAvj84Fh6xAsw4 qwiDqDiTotuTcMm/BWLgBIyPunNVjpZ43P1u37UV8GsoegubPrrGftQDt8Hb/TYgUwZY GZkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=dfky3zXVKi74InxWCBPLuQO//cc0cUvlYnJbd4gL7jA=; b=r0SoJOsAR0ULCGbLasayK0VyLGgp+b0pk5h/Eks9tkZqRRfLRYN03P/FDjqZXcnpX1 jSLfH4mxMnmGHIWOBYyZ6H1QfLfvU7/TeRrxqOXdfSdajO1aDNRuX/V4psw116LBif8K 633U/wz6LE7vwjFLLj3eJzL7cUn8iKWzIk91sJjSFrjf87iITT+2NBt+7NvAj87n7JR4 RK0t3SjQLEa3+JSuLRD/YnwKCk6g8TjG2DYwcIyPiNySxb5Gh7LAXD1HiTw/i2BuN3lo 9w5LF+m45Ub/IOrtbw3yiBZSd3doJw2BKrblmbVvnFDR09Hc3uvIzYoCggTyQVIJ9Lgn 0PEg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si6524014pgo.370.2018.01.18.10.00.52; Thu, 18 Jan 2018 10:01:08 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbeARR74 (ORCPT + 99 others); Thu, 18 Jan 2018 12:59:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51690 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228AbeARR7y (ORCPT ); Thu, 18 Jan 2018 12:59:54 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5D901C04AC47; Thu, 18 Jan 2018 17:59:54 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 84AA3414C; Thu, 18 Jan 2018 17:59:53 +0000 (UTC) From: Jeff Moyer To: Christoph Hellwig Cc: viro@zeniv.linux.org.uk, 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: Re: aio poll, io_pgetevents and a new in-kernel poll API V3 References: <20180117192742.710-1-hch@lst.de> <20180118174228.GA27412@lst.de> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Thu, 18 Jan 2018 12:59:52 -0500 In-Reply-To: <20180118174228.GA27412@lst.de> (Christoph Hellwig's message of "Thu, 18 Jan 2018 18:42:28 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 18 Jan 2018 17:59:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig writes: > On Thu, Jan 18, 2018 at 11:44:03AM -0500, Jeff Moyer wrote: >> Jeff Moyer writes: >> >> > FYI, this kernel has issues. It will boot up, but I don't have >> > networking, and even rebooting doesn't succeed. I'm looking into it. >> >> A bisect lands on: eventfd: switch to ->poll_mask. That's not super >> helpful, though. I did run the ltp eventfd2 tests, and they all pass. >> >> The actual issue I get on boot is that several services don't start: >> >> [...] >> >> Christoph, are you able to reproduce this? > > No, I can't reproduce any of that. But I don't have a Fedora system > either, so this might be a new systemd version doing funky things. > > The major change in this version was to call ->poll_mask before setting up > the wait queue as well. This does the right thing for poll and aio poll, > but the more I dig into the epoll code the less sure I am it does the right > thing for it, or in fact that epoll does the right thing in general.. > > Do you still see it with the patch below applied? No, that fixes it for me. -Jeff > diff --git a/fs/select.c b/fs/select.c > index 707abe79536b..1784c1a29253 100644 > --- a/fs/select.c > +++ b/fs/select.c > @@ -53,9 +53,9 @@ __poll_t vfs_poll(struct file *file, struct poll_table_struct *pt) > head = vfs_get_poll_head(file, events); > if (!head) > return DEFAULT_POLLMASK; > - mask = file->f_op->poll_mask(file, events); > - if (mask) > - return mask; > +// mask = file->f_op->poll_mask(file, events); > +// if (mask) > +// return mask; > > pt->_qproc(file, head, pt); > }