From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:57797 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731851AbeITMNT (ORCPT ); Thu, 20 Sep 2018 08:13:19 -0400 Date: Thu, 20 Sep 2018 08:31:29 +0200 From: Christoph Hellwig Subject: Re: block: DMA alignment of IO buffer allocated from slab Message-ID: <20180920063129.GB12913@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Ming Lei Cc: linux-block , linux-mm , Linux FS Devel , "open list:XFS FILESYSTEM" , Dave Chinner , Vitaly Kuznetsov , Linux Kernel Mailing List , Christoph Hellwig , Jens Axboe , Ming Lei On Wed, Sep 19, 2018 at 05:15:43PM +0800, Ming Lei wrote: > 1) does kmalloc-N slab guarantee to return N-byte aligned buffer? If > yes, is it a stable rule? This is the assumption in a lot of the kernel, so I think if somethings breaks this we are in a lot of pain.