From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87794C43334 for ; Wed, 1 Jun 2022 16:12:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355125AbiFAQMc (ORCPT ); Wed, 1 Jun 2022 12:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354085AbiFAQMb (ORCPT ); Wed, 1 Jun 2022 12:12:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08CC52F03F; Wed, 1 Jun 2022 09:12:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9B6636158B; Wed, 1 Jun 2022 16:12:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22701C385A5; Wed, 1 Jun 2022 16:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654099950; bh=jSnrwYSVVVvv/EVLj+vJtrVjvZIMaAqiU7n/yR71jag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BcO4g5pMQyTvHAaJh0kq+ldttn7ioefubEEGsAsNtV9459J87cLQEvJ2AuWleSaF4 IeoJlH5F5Mvjt+mX9KLQfIKuRcqmALpsVyPaypdfk1XtjMibbVwx9zKbxEg7eUfv43 AeHz55hf49N5ylHSX4CBa2CRdpp9psYWINWSSIZrnzFvuj+z46v/CUfElQ6v2ahIXg 1nEd+ogKt6kj+4wQpBdN8hRuVPC4lKAGHRqXSFO1xN/O/oOEuH/fUbP0lqDRxPmLjt aQa5C2NBQsJ/SuUZgWXJEXv7vbnUDarSFJ/5vvzsdnQ8WBEsUQdzw1NKAYenzKBmiu wrcC3meP4XWrA== Date: Wed, 1 Jun 2022 10:12:26 -0600 From: Keith Busch To: Eric Biggers Cc: Keith Busch , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, axboe@kernel.dk, Kernel Team , hch@lst.de, bvanassche@acm.org, damien.lemoal@opensource.wdc.com, pankydev8@gmail.com Subject: Re: [PATCHv5 00/11] direct-io dma alignment Message-ID: References: <20220531191137.2291467-1-kbusch@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Wed, Jun 01, 2022 at 08:28:31AM -0600, Keith Busch wrote: > On Wed, Jun 01, 2022 at 12:11:40AM -0700, Eric Biggers wrote: > > I still don't think you've taken care of all the assumptions that bv_len is a > > multiple of logical block size, or at least SECTOR_SIZE. Try this: > > > > git grep -E 'bv_len (>>|/)' > > There are only 8 drivers that set the request_queue's dma alignment, which are > the only ones that could be affected from this patch series. It's actually even simpler to audit than that. Of the 8 drivers that explicitly set dma alignment, only 3 set it to something smaller than a sector size. None of them assume any particular bv_len, so I think we're fine.