Received: by 10.223.148.5 with SMTP id 5csp5986052wrq; Wed, 17 Jan 2018 08:06:26 -0800 (PST) X-Google-Smtp-Source: ACJfBouMLorUZ8tliHKONz6aEYgXMrPunUy30NH11vIxY61QPpwdTTr4ZCyowtoOSjEn5VChq30T X-Received: by 10.99.60.13 with SMTP id j13mr23591547pga.306.1516205186337; Wed, 17 Jan 2018 08:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516205186; cv=none; d=google.com; s=arc-20160816; b=RZMXVykfuYw39m/HIgg7BFrKIv4tBTn7mXR4w4mAUvBoaZJZ9vmQMzjNMGlwszCXUj 5f2A9kdLDZY5HavgYAOH81RCwq6ItqO2PWHeGZnS8xbEwczhmalgLlntEI/jFvZ9aIN7 zzDeup5XGCFcOcS04YO/t2c8XSP5yadOv8id39jq1IW0CT05g8yEgCHVN7cDsyS1UhUe Jkf8Pb49E33Vn169+q+gZ2nFelKVneKIIRuNn/Yqq+xbrFuhJS0sfT3CqrHFlB3+iqPj IVBHOAhmXWfCM3MBqCb57oznvkBXUy26aWpKu2mvHSPoGrLX/bGGVb6BkIhcFShImM7t 99Hw== 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:arc-authentication-results; bh=/1pPJXdBYWyY9KAjVMyTH0oswvGJv0bGqoYgts6GccA=; b=ItCXSFxDxwiB39ewjPZptOJPVtj9RwKtZlnKF8XKAWhKjpem052cKLFk7USgRt5jW5 6Htc5cbPHVwdiJ4EgHgntFbmXpe3VEnvpoyC8aXbQbDTJeJnHKnBSTiZsec5DPcULz9a nPP5l6QYEh24LHYI7C38SkAIjr4mn2p6BC0z3HWEt+QIvElFjnwMlk7A2dl9ElPHYRj7 BspDisEbvu6iOdM3ay+UdnA/7nB3FcPtQ0ssgyhC0FNZ1MkRR3gVmz8yVTUjMqsxj2Br 3bGGRr1W+sJbYWtfgkOeo7qIClKF8+jYlVaekhgk51LxZrQm37cmz4jVJL2WcDa/YU6w riLQ== 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 g67si4048568pgc.690.2018.01.17.08.06.11; Wed, 17 Jan 2018 08:06:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753614AbeAQQFq (ORCPT + 99 others); Wed, 17 Jan 2018 11:05:46 -0500 Received: from verein.lst.de ([213.95.11.211]:56092 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbeAQQFp (ORCPT ); Wed, 17 Jan 2018 11:05:45 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 8B8D468DBB; Wed, 17 Jan 2018 17:05:43 +0100 (CET) Date: Wed, 17 Jan 2018 17:05:43 +0100 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , 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, Peter Zijlstra Subject: Re: [PATCH 03/32] fs: introduce new ->get_poll_head and ->poll_mask methods Message-ID: <20180117160543.GA5945@lst.de> References: <20180110155853.32348-1-hch@lst.de> <20180110155853.32348-4-hch@lst.de> <20180110210416.GH13338@ZenIV.linux.org.uk> <20180111113600.GA4120@lst.de> <20180111174750.GL13338@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180111174750.GL13338@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 Thu, Jan 11, 2018 at 05:47:50PM +0000, Al Viro wrote: > What I mean is that it would be nice to have do_select() and friends aware of that. > You are hiding the whole thing behind vfs_poll(); sure, we can't really exploit > that while we have the mix of converted and unconverted instances, but it would > be a nice payoff. I have tried to move it out, but I don't think it makes sense yet, given that we rely on passing the poll_table_struct everywhere. Btw, another issue: the procs and debugfs forwarders are in fact already broken right now for epoll and in-kernel callers. ->poll returning does not mean it is safe to release the module - it may still have an active wait_queue_entry on the waitqueue. For now I think I'll drop the support for the proc/debugfs forwarders, because they will need a real fix independent of this series.