Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755427AbZDNMLF (ORCPT ); Tue, 14 Apr 2009 08:11:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752911AbZDNMKw (ORCPT ); Tue, 14 Apr 2009 08:10:52 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58794 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816AbZDNMKw (ORCPT ); Tue, 14 Apr 2009 08:10:52 -0400 Message-ID: <49E47CD0.3090008@redhat.com> Date: Tue, 14 Apr 2009 15:08:48 +0300 From: Avi Kivity User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Jeff Garzik CC: Linus Torvalds , Alan Cox , Szabolcs Szakacsits , Grant Grundler , Linux IDE mailing list , LKML , Jens Axboe , Arjan van de Ven Subject: Re: Implementing NVMHCI... References: <20090412091228.GA29937@elte.hu> <20090412162018.6c1507b4@lxorguk.ukuu.org.uk> <49E213AE.4060506@redhat.com> <49E2DC96.6090407@redhat.com> <49E45E9C.1020105@redhat.com> <49E46437.5000804@garzik.org> <49E46779.1040106@redhat.com> <49E47744.3040103@garzik.org> In-Reply-To: <49E47744.3040103@garzik.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 35 Jeff Garzik wrote: >>> (c) export information indicating the true sector size, in a manner >>> similar to how the ATA driver passes that info to userland >>> partitioning tools. >> >> Eventually we'll want to allow filesystems to make use of the native >> sector size. > > At the kernel level, you mean? > Yes. You'll want to align extents and I/O requests on that boundary. > > But if you are talking about filesystems directly supporting sector > sizes >4kb, well, I'll let Linus and others settle that debate :) I > will just write the driver once the dust settles... IMO drivers should expose whatever sector size the device have, filesystems should expose their block size, and the block layer should correct any impedance mismatches by doing RMW. Unfortunately, sector size > fs block size means a lot of pointless locking for the RMW, so if large sector sizes take off, we'll have to adjust filesystems to use larger block sizes. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/