Return-Path: Subject: Re: [PATCHSET] Add support for simplified async direct-io To: Christoph Hellwig References: <4f30a528-9996-4c6a-9513-8aa2054e4d4b@fb.com> <20161114180503.GA31126@infradead.org> <20161114181119.GA9396@infradead.org> <20161116163147.GA25038@infradead.org> <72b1725a-0363-d33e-f890-251b1ac88998@kernel.dk> <20161116171652.GA30008@infradead.org> <20161117125037.GB14814@infradead.org> <204d4a18-e5da-1806-433e-a3ff1b6ca575@kernel.dk> Cc: linux-block@vger.kernel.org From: Jens Axboe Message-ID: <87823f67-a2ec-e959-1a23-9ecf3d6fe6d4@kernel.dk> Date: Thu, 17 Nov 2016 08:03:46 -0700 MIME-Version: 1.0 In-Reply-To: <204d4a18-e5da-1806-433e-a3ff1b6ca575@kernel.dk> Content-Type: text/plain; charset=windows-1252; format=flowed List-ID: On 11/17/2016 06:25 AM, Jens Axboe wrote: > On 11/17/2016 05:50 AM, Christoph Hellwig wrote: >> On Wed, Nov 16, 2016 at 09:43:57PM -0700, Jens Axboe wrote: >>> OK, I'm getting reasonably happy with it now: >>> >>> http://git.kernel.dk/cgit/linux-block/log/?h=for-4.10/hch-dio >>> >>> Sharing the FUA setting to avoid the manual flush between the two, and >>> removing the remnants of SYNC support from __blkdev_direct_IO(). >>> >>> I'll fire off some overnight testing now and leave it for the day. >> >> This looks reasonable, a couple questions and comments: >> >> - why the 8 * BIO_MAX_PAGES in the call to iov_iter_npages, >> that probably needs a comment > > Looks like I forgot to push out the latest changes, that is gone. We're > just using + 1 now to see if we should use the multibio function or not. Just to clarify, the correct tip is: commit 18eb8e94477813c190a2dfcd790c6707ab168377 Author: Jens Axboe Date: Wed Nov 16 23:20:41 2016 -0700 block: save 8 bytes of space in struct blkdev_dio That's what I ran in my overnight testing, and it looks fine from my end. -- Jens Axboe