Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1774731ybn; Thu, 26 Sep 2019 01:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKZc1zs42VoBnhD1hW6+F2gZp6P5wpwtjCQFvzjNfY5HZryiFmfC5OkQi+SWebF+oX3uoD X-Received: by 2002:a17:906:3485:: with SMTP id g5mr1998808ejb.76.1569488231426; Thu, 26 Sep 2019 01:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569488231; cv=none; d=google.com; s=arc-20160816; b=tJaZTXBcxapWRyvBR3Qzq9bG4tXIErz56UZzonge64UPk3tIuvL/HjFIfwlH3qhQlz SLWXC9KAFteBD9pvHPZbOyHYcRulEj32+HubTSVbCAI4peeo14Let2rnvP1yBIBDe5hl DBPxTMxaC4FuyrWgQ7w5l55ySS8wgHA6ejYpuAg0ITK+QyM2MqNaOeKxzowjZre5hlOT f5lR8z6ocMhSObJbHHGOVGFCfoDXWqxpQSj8qegToWxxdbrpmDBjw4ABQ2IETFqwOENf oQLUR7R+EZdt3ROAhy9tVeFgpAuKxa9sfAq0R/669Pyx1eEih4K+1xr46RlwDuhT2SVH M61g== 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=UfFefma6EQsnQBPBP2uxbIQqOVMLobMs3qM0yUaw8nc=; b=EagrJkQ4WP+Yuz+MToKSc1RKIVEyQ39Gq/YuaJBicvR3K9L6/egVX8Y8askvFe4ZVZ QwTrPHmN98Ulnm6YqH4lb6sDJrzuSgkDgLE0bdGzmdzOBWIyCEKiZ10M74KCxLg5KmgZ Eqc7gB/UBRpI1llSs4WBc6SmQculowT3k9ZrD175P2dA3wkERflKbZ9QpQoJpOf9wqdU FGMbF8FR0LOCMIRReFCScKoMUHkcPMIp6UsL8Eyz6OgeRkosTy5IWK7U1LWuQu4CN2TB YG7doPCmZhbCynURsk6FUZgXjBw3PBeAa6p1uZPArgDiFoSM2xSNxSFrchiqg04nMp9Q YgUQ== 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 v5si944503ede.126.2019.09.26.01.56.48; Thu, 26 Sep 2019 01:57:11 -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 S2633587AbfIXVyD (ORCPT + 99 others); Tue, 24 Sep 2019 17:54:03 -0400 Received: from mail104.syd.optusnet.com.au ([211.29.132.246]:42653 "EHLO mail104.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728183AbfIXVyD (ORCPT ); Tue, 24 Sep 2019 17:54:03 -0400 Received: from dread.disaster.area (pa49-181-226-196.pa.nsw.optusnet.com.au [49.181.226.196]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 1A2C543EFAD; Wed, 25 Sep 2019 07:53:55 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.2) (envelope-from ) id 1iCskr-0005bn-N3; Wed, 25 Sep 2019 07:53:53 +1000 Date: Wed, 25 Sep 2019 07:53:53 +1000 From: Dave Chinner To: Vlastimil Babka Cc: "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 , 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 Subject: Re: [PATCH v2 2/2] mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) Message-ID: <20190924215353.GG16973@dread.disaster.area> References: <20190826111627.7505-1-vbabka@suse.cz> <20190826111627.7505-3-vbabka@suse.cz> <20190923171710.GN2751@twin.jikos.cz> <20190923175146.GT2229799@magnolia> <172b2ed8-f260-6041-5e10-502d1c91f88c@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <172b2ed8-f260-6041-5e10-502d1c91f88c@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=P6RKvmIu c=1 sm=1 tr=0 a=dRuLqZ1tmBNts2YiI0zFQg==:117 a=dRuLqZ1tmBNts2YiI0zFQg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=7-415B0cAAAA:8 a=8DDTXLWI6Pjby6uLqAQA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 24, 2019 at 11:19:29PM +0200, Vlastimil Babka wrote: > 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. I don't think the problem here is the code. The problem here is that we have a dysfunctional development community and there are no processes we can follow to ensure architectural problems in core subsystems are addressed in a timely manner... And this criticism isn't just of the mm/ here - this alignment problem is exacerbated by exactly the same issue on the block layer side. i.e. the block layer and drivers have -zero- bounds checking to catch these sorts of things and the block layer maintainer will not accept patches for runtime checks that would catch these issues and make them instantly visible to us. These are not code problems: we can fix the problems with code (and I have done so to demonstrate "this is how we do what you say is impossible"). The problem here is people in positions of control/power are repeatedly demonstrating an inability to compromise to reach a solution that works for everyone. It's far better for us just to work around bullshit like this in XFS now, then when the core subsystems get they act together years down the track we can remove the workaround from XFS. Users don't care how we fix the problem, they just want it fixed. If that means we have to route around dysfunctional developer groups, then we'll just have to do that.... Cheers, Dave. -- Dave Chinner david@fromorbit.com