From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by kanga.kvack.org (Postfix) with ESMTP id 1ACCF8E0001 for ; Thu, 20 Sep 2018 02:31:30 -0400 (EDT) Received: by mail-wr1-f72.google.com with SMTP id l15-v6so7999452wrp.8 for ; Wed, 19 Sep 2018 23:31:30 -0700 (PDT) Received: from newverein.lst.de (verein.lst.de. [213.95.11.211]) by mx.google.com with ESMTPS id w130-v6si1041883wmf.64.2018.09.19.23.31.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 23:31:29 -0700 (PDT) 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: owner-linux-mm@kvack.org List-ID: 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.