Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2862850imm; Mon, 24 Sep 2018 11:10:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV61I9EiJv+h1310mtFV1BlSRlOIJohchwf2Rs3E5b4+CsV7haXXLnKpCxxRABQZxUsbglrJK X-Received: by 2002:a63:fa0c:: with SMTP id y12-v6mr10610314pgh.177.1537812617673; Mon, 24 Sep 2018 11:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537812617; cv=none; d=google.com; s=arc-20160816; b=efv2p3cUptXJ3CFHLOsnHmFXZ/sKg+38lAlfkT57hh8m+nZaXL1Y6ijXbxJpMz2IZ7 c4U+clTqtLkSOhqz84g4b6gOxr7lSYU44KCdRmpGZeEQDTHNRQovUiE+ECDwBJ87z25a s8haB2fdTuBURCbADPten13TseCTJ+V5RHnEAcXK1oyhupoAL160Z1P+2QxbLDZ9aHKk letagGn5vn09FJjArVbh2/9a3LtW5+A8sB/K3+KEJNdVXFYU7gYtC/aPBXUldZ8n3jre fZhyrx6UvOGflHL25cR/9uAjHVcVlIqx0N3ZC8LRyDKQZ5UqYUhaI9+WpEgl27YBZ7JG Y3/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UHCeYyqZzNK6+M3bf4mg3QpUQh57EyXFgjsqKKsrGCg=; b=D9rYrvgk7HnKhW6KwmSk/1fSAGPx/ebciGIF/tI7CyntwaREV90M697wgQROpTDrhg 51vecmSP16HtvFjZp6xcSKKwX2Pbel7EM8UdqZHFqLR5Ti8Bv9Q6SgROF18hPW5r24gx zahkSYL2sSwG66NApg5I4Tpf4zSVAQdwDV4h9WwNm2CgExs7UD4y53OqktbHrv7AHkUc 1aZrLIjbqDD6ASffbymTBOx+h7ZNiUwArWM8MtjSZ6FmZC9WPb2HZdB4pDx2ksai1U6F f0wtJTtcgQ7HJwQ750oTlyYwscKCjSzOE3OASdn2f/zcI+61Ia3IQWNQWRbsCG8IIFLt yg8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Eihb7jRH; 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 k130-v6si36215384pfc.282.2018.09.24.11.10.01; Mon, 24 Sep 2018 11:10:17 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Eihb7jRH; 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 S1733268AbeIYAND (ORCPT + 99 others); Mon, 24 Sep 2018 20:13:03 -0400 Received: from mail-it1-f170.google.com ([209.85.166.170]:51993 "EHLO mail-it1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731633AbeIYAND (ORCPT ); Mon, 24 Sep 2018 20:13:03 -0400 Received: by mail-it1-f170.google.com with SMTP id e14-v6so11859025itf.1 for ; Mon, 24 Sep 2018 11:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UHCeYyqZzNK6+M3bf4mg3QpUQh57EyXFgjsqKKsrGCg=; b=Eihb7jRHsFUSBQ7rNZLWVsmUrDeA1VbPk29jqAXyvL7i32hh/aEFfy50fW9Z/Ax6vL wvHcjGSl6FnZbgNGMdhR+r4KtHC1VAU6MH3zHVB/sFTuRjKC1UbUp3vi7298zIGXlIs3 dLSXeChXM0oEXn/4ssG5PntyoCKbbw9cmdygg45QOoxR83GRaxc9hJre6vhbriAqygY0 yz8/vEbU77LfdanfpZW7+AZZsJZQbekag9taXDkxTBHAJRTJ5m7fzDANi2EazFXPl7HS QQPgkJqEXf2xjE95ix72sbg09bLQnztTdvx6Y+e32SUjXLcRwmuS1jH44EA5V+0UIF/9 qyQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UHCeYyqZzNK6+M3bf4mg3QpUQh57EyXFgjsqKKsrGCg=; b=b4WzeZspAlk7O1Ygv4ZkmiQwH+VqHbRLAuYl7ZJwFapDirWLlLJJK6GCW3tSbj3c8t Nkn8aizTqygT+/E2Ds2Sbp7X383ZuLTIFNdUMUOJILehaYZBg/K/o1VdhxcLlfgjXCdn 7H+6dZ5Jxpybd5KYWlvCwmDZ1rRi5wWSvDn5UAsZ1FamAgpULPgZuLBHk7hLoU7Ygpb9 JaGN0ayb2d2zEnIQ2oFVJ40tGA53fnWyJoMS8/q3vV1MlQAJ7gpbkkA5Dxy/e+bvrJNx s7+t3YpmH4Itfcr+5oFL/3tkyMmDTTmDXDB9wSBCG3263nWIH/cAkgalzAc/XbyY5wYF Q6qQ== X-Gm-Message-State: ABuFfoiWCwVDZDdyuD2wZmzmbtcPTRXhBwi+lTKeomKnwog8AAxnIof/ C4KKXb5gdw7DT17tNTiHxBa4+w== X-Received: by 2002:a02:898d:: with SMTP id p13-v6mr31670jaj.74.1537812579878; Mon, 24 Sep 2018 11:09:39 -0700 (PDT) Received: from [192.168.1.56] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id t134-v6sm6846988itb.41.2018.09.24.11.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 11:09:38 -0700 (PDT) Subject: Re: block: DMA alignment of IO buffer allocated from slab To: Christopher Lameter Cc: Christoph Hellwig , Vitaly Kuznetsov , Ming Lei , linux-block , linux-mm , Linux FS Devel , "open list:XFS FILESYSTEM" , Dave Chinner , Linux Kernel Mailing List , Ming Lei References: <20180920063129.GB12913@lst.de> <87h8ij0zot.fsf@vitty.brq.redhat.com> <20180921130504.GA22551@lst.de> <010001660c54fb65-b9d3a770-6678-40d0-8088-4db20af32280-000000@email.amazonses.com> <1f88f59a-2cac-e899-4c2e-402e919b1034@kernel.dk> <010001660cbd51ea-56e96208-564d-4f5d-a5fb-119a938762a9-000000@email.amazonses.com> From: Jens Axboe Message-ID: <1a5b255f-682e-783a-7f99-9d02e39c4af2@kernel.dk> Date: Mon, 24 Sep 2018 12:09:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <010001660cbd51ea-56e96208-564d-4f5d-a5fb-119a938762a9-000000@email.amazonses.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/18 12:00 PM, Christopher Lameter wrote: > On Mon, 24 Sep 2018, Jens Axboe wrote: > >> The situation is making me a little uncomfortable, though. If we export >> such a setting, we really should be honoring it... > > Various subsystems create custom slab arrays with their particular > alignment requirement for these allocations. Oh yeah, I think the solution is basic enough for XFS, for instance. They just have to error on the side of being cautious, by going full sector alignment for memory... -- Jens Axboe