From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755381AbdESOP0 (ORCPT ); Fri, 19 May 2017 10:15:26 -0400 Received: from verein.lst.de ([213.95.11.211]:36953 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406AbdESOPX (ORCPT ); Fri, 19 May 2017 10:15:23 -0400 Date: Fri, 19 May 2017 16:15:22 +0200 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Andy Lutomirski , Jens Axboe , Sagi Grimberg , "linux-kernel@vger.kernel.org" , linux-nvme , Kai-Heng Feng , Mario Limonciello , Christoph Hellwig Subject: Re: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe Message-ID: <20170519141522.GA1830@lst.de> References: <20170519063505.GA15980@infradead.org> <20170519141834.GB6015@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170519141834.GB6015@localhost.localdomain> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 19, 2017 at 10:18:34AM -0400, Keith Busch wrote: > + > + if (ns->ctrl->quirks & NVME_QUIRK_PAGE_ALIGN) > + blk_queue_logical_block_size(ns->queue, ns->ctrl->page_size); > + else > + blk_queue_logical_block_size(ns->queue, bs); Ugg. That will invalidate the layout of any existing fs (in case the device hasn't eaten it yet). It would also invalidate things like partitions tables, even if they are only used to share with windows.