Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1619193imm; Wed, 19 Sep 2018 23:31:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzIgEbuB1ubPbp0YfA5hc2NG/t8jXOdZZpgsncIfR0Chn2b5Scsjn1k6gScrucPB+gCB+k X-Received: by 2002:a17:902:8681:: with SMTP id g1-v6mr37096624plo.302.1537425111431; Wed, 19 Sep 2018 23:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537425111; cv=none; d=google.com; s=arc-20160816; b=CdRcM0C6S6+o1OJLqsk1JceAA0wX6Wxl3uTrrDcMnYL9jzvy2ZwieQ5zPPt68T/NXt NlmWW/b/c7kPovj25mMM3R2Lm+i8wQUhRxp08kHlKBJNPg35ijTGh5mq8j96aVuB79cG aoEhHmpvRzWCFM5STKDyaE40LXrSANiW76Jwu3AOzgiAG3tENKyG5jOUYGg3ycMsKR0H MTpMJ+gTsBfqfHTSKs29AFRJzc7CIkx2L0HqhHUZLw9a90LDj42qbwLMWAlOKC2ocM0L oL1MGpnWi64QE62Rs7eZSK4r7ZQgW0sUxEUdt3YR6z5pj+s6+feLzbDpj2SnChxqsj/c NskQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C7YeCPbwOZYL5mic1RqZolKODfp9pNow1cgBTJ0P2iQ=; b=WcDJqWpOOnN4gM2Y0SsxidkOXd5iU1AlVxkaW/bNOQk2NQPPPJIZRhLx69ZLIFwxNv 9fFdsdZjNd7iQOdv/iVMHBrvpoh6eLFEBwPldk+N+dKq6Wneefwu35gbsXuWQ95eJMCD sg6cV+EELHBEgwye1YbjYLpBaAEb7B98lwRzqFgqCvRttFPuQ0A7KF490lHFlBOQJ+VQ xAGS7gWCDjETH/2eOj8q2DClu0xUNCT4AG8j8NJo12Irqba6uPMTmuap8oCYXt97ldYm /axJtG3WCLb5nGtsVF7E/9JJNOAos76KTqKJ157vCKGLy1+gmjtmzxLCPpRMVDtTYncN Eihg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si24232486pfd.142.2018.09.19.23.31.36; Wed, 19 Sep 2018 23:31:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732139AbeITMNT (ORCPT + 99 others); Thu, 20 Sep 2018 08:13:19 -0400 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 Received: by newverein.lst.de (Postfix, from userid 2407) id F04E368D62; Thu, 20 Sep 2018 08:31:29 +0200 (CEST) Date: Thu, 20 Sep 2018 08:31:29 +0200 From: Christoph Hellwig 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 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: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.