From owner-freebsd-arch@freebsd.org Sun Jan 31 23:02:18 2016 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7223CA7506A for ; Sun, 31 Jan 2016 23:02:18 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 621C0896 for ; Sun, 31 Jan 2016 23:02:18 +0000 (UTC) (envelope-from jilles@stack.nl) Received: by mailman.ysv.freebsd.org (Postfix) id 5F2A8A75069; Sun, 31 Jan 2016 23:02:18 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EC20A75068 for ; Sun, 31 Jan 2016 23:02:18 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CEE1895; Sun, 31 Jan 2016 23:02:18 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from toad2.stack.nl (toad2.stack.nl [IPv6:2001:610:1108:5010::161]) by mx1.stack.nl (Postfix) with ESMTP id E515C359306; Mon, 1 Feb 2016 00:02:14 +0100 (CET) Received: by toad2.stack.nl (Postfix, from userid 1677) id C3A79892A8; Mon, 1 Feb 2016 00:02:14 +0100 (CET) Date: Mon, 1 Feb 2016 00:02:14 +0100 From: Jilles Tjoelker To: John Baldwin Cc: arch@freebsd.org Subject: Re: Refactoring asynchronous I/O Message-ID: <20160131230214.GA37435@stack.nl> References: <2793494.0Z1kBV82mT@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2793494.0Z1kBV82mT@ralph.baldwin.cx> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 23:02:18 -0000 On Tue, Jan 26, 2016 at 05:39:03PM -0800, John Baldwin wrote: > Note that binding the AIO support to a new fileop does mean that the AIO code > now becomes mandatory (rather than optional). We could perhaps make the > system calls continue to be optional if people really need that, but the guts > of the code will now need to always be in the kernel. Enabling this by default is OK with me as long as the easy ways to get a stuck process are at least disabled by default. Currently, a process gets stuck forever if it has an AIO request from or to a pipe that will never complete. An AIO daemon should not be allowed to perform an unbounded sleep such as for a pipe (NFS server should be OK). -- Jilles Tjoelker