From owner-svn-src-head@freebsd.org Sat May 14 20:35:42 2016 Return-Path: Delivered-To: svn-src-head@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 371F8B39462; Sat, 14 May 2016 20:35:42 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2DF681803; Sat, 14 May 2016 20:35:42 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 2C31411D0; Sat, 14 May 2016 20:35:42 +0000 (UTC) Date: Sat, 14 May 2016 20:35:42 +0000 From: Alexey Dokuchaev To: Rick Macklem Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r299753 - head/sys/fs/fuse Message-ID: <20160514203542.GA21013@FreeBSD.org> References: <201605142003.u4EK3MwV021470@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201605142003.u4EK3MwV021470@repo.freebsd.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2016 20:35:42 -0000 On Sat, May 14, 2016 at 08:03:22PM +0000, Rick Macklem wrote: > New Revision: 299753 > URL: https://svnweb.freebsd.org/changeset/base/299753 > > Log: > Fix fuse to use DIRECT_IO when required. > > When a file is opened write-only and a partial block was written, > buffered I/O would try and read the whole block in. This would > result in a hung thread, since there was no open (fuse filehandle) > that allowed reading. This patch avoids the problem by forcing > DIRECT_IO for this case. > It also sets DIRECT_IO when the file system specifies the FN_DIRECTIO > flag in its reply to the open. Since you're at fuse now, perhaps you could also have a look at PR 195000? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195000 ./danfe