From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754194AbbHJIIs (ORCPT ); Mon, 10 Aug 2015 04:08:48 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60608 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752830AbbHJIIo (ORCPT ); Mon, 10 Aug 2015 04:08:44 -0400 Date: Mon, 10 Aug 2015 01:08:40 -0700 From: Christoph Hellwig To: Ming Lei Cc: Dave Chinner , Christoph Hellwig , Jens Axboe , Linux Kernel Mailing List , Dave Kleikamp , Zach Brown , Maxim Patlasov , Andrew Morton , Alexander Viro , Tejun Heo Subject: Re: [PATCH v9 6/6] block: loop: support DIO & AIO Message-ID: <20150810080840.GA2293@infradead.org> References: <1438850538-15682-1-git-send-email-ming.lei@canonical.com> <1438850538-15682-7-git-send-email-ming.lei@canonical.com> <20150807074342.GA30547@infradead.org> <20150809064439.GC2436@infradead.org> <20150809134404.GA7190@infradead.org> <20150809234126.GA906@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 09, 2015 at 10:50:41PM -0400, Ming Lei wrote: > Christoph, could you share your idea again about this approch? > > If you still don't think it is good to switch between buffered I/O > and direct I/O, I will not do that in next post. If we epxose a 512 byte block size to the loop device people will use it, for example mkfs.xfs might do smaller I/O, extN will default to small blocksize for small devices, etc. If you are using a loop devices on a 4k sector backing device and care about performance (which current loop users generally don't..) just make sure to set the loop block size to 4k, which Hannes' series will allow us to do easily.