Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1187992ybn; Wed, 25 Sep 2019 13:53:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWq/FXDhG5l8pU5bb/qZUqGx6GkkamY3zuHIiJQurkAH/15dm96y6WhcTiic++ByLY/13F X-Received: by 2002:a17:906:1542:: with SMTP id c2mr110261ejd.120.1569444814058; Wed, 25 Sep 2019 13:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569444814; cv=none; d=google.com; s=arc-20160816; b=qdV+UidE1w3MSohRmD3qRAUD0MCEJ9H8qAhJnli2S75JYkmWOlQbbwRb5UqqhyLBhp zLf+SJIVmsqJHGITyhbYV9vRCPyA8Us9EmS08g2OpfiSM/S6fkbJVw3Qv6FfsAccyWXg +s213Gmkrc/VgJaK23t2tvNGeiFFfyvTrcX+ECp0SKeextPZbws3pL7/bzd1i66ePLKz T9inCec4eMHzI6KtRnwyxH7pfR4zRkHjQvwtYF/oOHo2yOY/PZhIbSroFFZCaFSx8P4A MEn1q9gAH9q01LZfWzgs6zJAVhR9UT/phvubtTh+qhqL1Cn4T6eOJEZAqScjhJpP0ngt chrA== 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:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=seQpuFTt9f7S5QZIQo1emsozTAiRHSfbXHT1JJdclc8=; b=Am078Bygx2dMi3lou3RB1PF/E1+++3yCxXxZwyi5OSmQRoytHnV7WQbtp7B4gCAXRr qv2tgBReOAOFgr4ZyFIfrhs2Kui0Hc9RGPyYsc6YqpnDtLCYlxEatpTq1fVX4ub2pYye tIsCUVgdeLEpmOxVah4zL4/xmHM0ujkoujEWFSuhKDN5haEoJanSXjhX6sbwdenwrIHD 2g+PRPzbv7q9b4g2d9sEra1YVuuElpleNEZ1dNgf2gGlVsvyY11iwssiLOAyTn873r/X 3qgWVzAO7Frphz4YZb8zB1+F3vAiekaJuVDe8rqEK5+Itwj92jEgZa29GFiMeD3cINcu LvEw== 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 m6si358103ejq.392.2019.09.25.13.53.10; Wed, 25 Sep 2019 13:53:34 -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 S2439924AbfIWRQw (ORCPT + 99 others); Mon, 23 Sep 2019 13:16:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:42936 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731086AbfIWRQw (ORCPT ); Mon, 23 Sep 2019 13:16:52 -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 04591AD29; Mon, 23 Sep 2019 17:16:49 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 94B23DA871; Mon, 23 Sep 2019 19:17:10 +0200 (CEST) Date: Mon, 23 Sep 2019 19:17:10 +0200 From: David Sterba To: Vlastimil Babka Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Ming Lei , Dave Chinner , Matthew Wilcox , "Darrick J . Wong" , 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: <20190923171710.GN2751@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Vlastimil Babka , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Ming Lei , Dave Chinner , Matthew Wilcox , "Darrick J . Wong" , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). As a user of the allocator interface in filesystem, I'd like to see a more generic way to address the alignment guarantees so we don't have to apply workarounds like 3acd48507dc43eeeb each time we find that we missed something. (Where 'missed' might be another sort of weird memory corruption hard to trigger.) The workaround got applied because I was not sure about the timeframe of merge of this patch, also to remove pressure for merge in case there are more private acks and nacks to be sent. In the end I'd be fine with reverting the workaround in order to use the generic code again. Thanks.