Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1771445ybn; Thu, 26 Sep 2019 01:53:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh98mNYgUYcUg0cPWaKnm0tf2bc9XxIJsIqPwfY+TnKksxyzTeFCaEIVkmElMRKJxb4hRN X-Received: by 2002:a17:906:7687:: with SMTP id o7mr2041149ejm.213.1569487984828; Thu, 26 Sep 2019 01:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569487984; cv=none; d=google.com; s=arc-20160816; b=F9w/VMhd0QbyTK252NuHzTkWs2m9ubhS0cttzahvbRiY4+vVwQfyMkUvs/NxS3hUct zzs29fOsy16ssIEVEGYg18t2AxYB30XD0JlqzF1AQCQJsSQC34aY69l8zYUAqf1yTb3Z AZIn/P4BbA4o58DHesjTZActn3YG9zYkWtQevF5QbQhapP92XN2wswsqyZaX4L8IhTHC ssIZQFBmvD8TIIOHHYbT0etrtozB4FjbUkeQfbawW/aqH9niiCiQYsqkVKx86m8S0J89 x0X3rhn5twvkRjdTGaXFqTIAgu1NKtU9k8FzicUxpORSxIPyljbh94kXmQ3WiliS3cJg Wo9w== 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:to:subject; bh=H1ZG2RmqGlYRQfEmrT00etgriLAdy0nL7BpEsrvxGXQ=; b=KElMGXyJCHNCRc/HMe2h4l9YsXQ/6ZnayRwMyj26o8OkoIIrqhRhBvy81NuAcs9GN7 w1Fb7Ttb2IvqO36geWsHhldNsrn+almg8y4QgSmehRAIjmfgEzCOTgDSLIv3RWev085Z KA/jgtFagHXzVyFKeKZfoKMlKGP5O/opzKEqy1gQvsWbs+GDj9T0NKB2xOjpOI7S2/cH cWM3sdoRyB+ZGVZZSQqxvK54rbfhJWfBcBqdm9+cpqLRYd65H5d6koEGwWn6fG7+mUWR ULOAIE7qYt+y7JYaXodF3QcqPqlaKtJEX0lmRcYU0Vs7YXfmZCRQ176o5ZcR0caW4J7D 9Z0Q== 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 j6si738036ejj.37.2019.09.26.01.52.41; Thu, 26 Sep 2019 01:53:04 -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 S2410861AbfIXVTf (ORCPT + 99 others); Tue, 24 Sep 2019 17:19:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:58134 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2406468AbfIXVTf (ORCPT ); Tue, 24 Sep 2019 17:19:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 83BA2AC84; Tue, 24 Sep 2019 21:19:32 +0000 (UTC) Subject: Re: [PATCH v2 2/2] mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) To: "Darrick J. Wong" , dsterba@suse.cz, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Ming Lei , Dave Chinner , Matthew Wilcox , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, James Bottomley , linux-btrfs@vger.kernel.org, Roman Gushchin , Johannes Weiner References: <20190826111627.7505-1-vbabka@suse.cz> <20190826111627.7505-3-vbabka@suse.cz> <20190923171710.GN2751@twin.jikos.cz> <20190923175146.GT2229799@magnolia> From: Vlastimil Babka Message-ID: <172b2ed8-f260-6041-5e10-502d1c91f88c@suse.cz> Date: Tue, 24 Sep 2019 23:19:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190923175146.GT2229799@magnolia> 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/23/19 7:51 PM, Darrick J. Wong wrote: > On Mon, Sep 23, 2019 at 07:17:10PM +0200, David Sterba wrote: >> On Mon, Sep 23, 2019 at 06:36:32PM +0200, Vlastimil Babka wrote: >>> So if anyone thinks this is a good idea, please express it (preferably >>> in a formal way such as Acked-by), otherwise it seems the patch will be >>> dropped (due to a private NACK, apparently). > > Oh, I didn't realize ^^^^^^^^^^^^ that *some* of us are allowed the > privilege of gutting a patch via private NAK without any of that open > development discussion incovenience. > > As far as XFS is concerned I merged Dave's series that checks the > alignment of io memory allocations and falls back to vmalloc if the > alignment won't work, because I got tired of scrolling past the endless > discussion and bug reports and inaction spanning months. I think it's a big fail of kmalloc API that you have to do that, and especially with vmalloc, which has the overhead of setting up page tables, and it's a waste for allocation requests smaller than page size. I wish we could have nice things.