Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1387287imm; Wed, 23 May 2018 15:25:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7RkBF6lI/gaf0y8LesoveDwGufbjed8UO2yxiAEprdz3HqbXM7cEOZfqdSRq6NJ5QQPtW X-Received: by 2002:a65:5807:: with SMTP id g7-v6mr3651626pgr.409.1527114306428; Wed, 23 May 2018 15:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527114306; cv=none; d=google.com; s=arc-20160816; b=JSraCZkQtih/hVa0Gci01pfpiu8NnV+VlqlUT27jnQkb9JnSsnxVIirxsEAfVSqPEo y9ORXU/BxYMH+3lu4Fhpma6O8iunQb2Q35iuHLlgajA4hjfXljIjtNb1Ee4WmBF/3YX1 6jlPRJ38eq0bBMJiQ1ZnM1kqUVnRevbqVS0HzWvjpjy0tgPJ3AFBJC7GfG1LaZZIOJhq O3p6K7moA1/KK87BBkW1JPH/tlYUaLzs4G2HevtOvm6u38UTp5kEXinvk6gVOw9HUMOn V9mLwh+4yksQWqVhXKB2E1yyWXI9lM14iEqBa9vsyNqsM+aV//u6CuUEkafGk0zvW4Ag TFVQ== 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:dkim-signature:arc-authentication-results; bh=oWecHdn1KIXrq2Dz8xoFCurWdW7GcLb58fzF1sy6CZw=; b=bP/4g6fnaST8Tefau/qcpTWxsugXCfJNlSQEmCCe4UDW2eGkgzSTGwgqcZmAEaN6+S 5DihtWvB/hyxeD1egCJW0aFyEkn6aCdqpIbFW5OFM/qRMqaj3GiVE2sLIRi+6zToeqnp IphPDE4GYF7qK/4kfyp9/0TRQ4PaZ0Vaz2xvQOv8FLq18LzKOXmHkhDx6b34C6hnIWWW 09QgQ825629ooCqx+xBdVF8JXIHhI6nEaNx0u/8JxEUnIRr0m5x/v/4TJdRz9prjzCbA sHI5b67lHMSf6y6U120R1tbBb65cjhl7AOBg8sMblb3pHVi+l6ILEHzwCL/IgRWHRrC6 YsbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dc/BQ/P9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si20068860plu.385.2018.05.23.15.24.51; Wed, 23 May 2018 15:25:06 -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=@gmail.com header.s=20161025 header.b=dc/BQ/P9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934775AbeEWWYk (ORCPT + 99 others); Wed, 23 May 2018 18:24:40 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38401 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934027AbeEWWYd (ORCPT ); Wed, 23 May 2018 18:24:33 -0400 Received: by mail-qk0-f194.google.com with SMTP id c23-v6so3804980qkb.5; Wed, 23 May 2018 15:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oWecHdn1KIXrq2Dz8xoFCurWdW7GcLb58fzF1sy6CZw=; b=dc/BQ/P9meytUQYU/Q9px9ooNBNaGoEgu/mK2HUo2Kj7m1TAqtBgh6e/xEeUB9HKMZ I4vDD7r5b3dkz43UuZCxJ4rgfS2y9w4Y2dBosDNp+LdkNcUb0jUdNQka7k823hJ+Zecw OPbmJjlkR9k2x+8AIeY6aXKvDVF2HbRRHUQvKmxiY9i+4ow3Y27qeAld2Ztj1F90a1qx +ljmOVg3Qglba69CDjnfxZFTLrFud5JV7gQbq+pqOysHM+T1SdgSDko9HFms5EN247ug EtyQqj4GfXOIcYn1coVmOmu3rPWmKCQEL5ST5mEu/Ph+wpux99Kg2SUzKxwhTfwUwTUj mJ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oWecHdn1KIXrq2Dz8xoFCurWdW7GcLb58fzF1sy6CZw=; b=hTsx9dDkjI4RPwBPoPbyWNNKhb0SIitWjW/ZgUB83PqueSSlVBaLDhPRv6JVMbfJw1 tsGX9ZbMXw7Dwwe7caTXUZEsxdbmsAwHQp0QVq81KPwNVtnToipJ92HKLGJ7JXLANQRn Q8MBc5gDA979AfZMRJgpSd2Zq6Qdz3GyuLcuUtx5oPcFYT+/qGCzinRcu+KaBmehNJjT PnUaxfxmXcmTHIlLhkynLeOqr+gbolvPnm/aPCzaBFS9rRIRp13UsNwEXOCDYxOAHlrg v9psbjHAHxCeth5ruz5aMTItK47hiKuYqN1D+mQEhIPuMoiteFPtQSoogD2px9mHf7gI GI+w== X-Gm-Message-State: ALKqPwftixf496MPFh/5Pw8WuyURdnNj5/kzYDluI0jlySENnc4X6dIF uMLGSE9zsyzh4s1iFRoCKg== X-Received: by 2002:a37:412:: with SMTP id 18-v6mr4475343qke.165.1527114272130; Wed, 23 May 2018 15:24:32 -0700 (PDT) Received: from kmo-pixel (c-71-234-172-214.hsd1.vt.comcast.net. [71.234.172.214]) by smtp.gmail.com with ESMTPSA id k127-v6sm1713584qke.20.2018.05.23.15.24.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 15:24:31 -0700 (PDT) Date: Wed, 23 May 2018 18:24:28 -0400 From: Kent Overstreet To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, gregkh@linuxfoundation.org, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, dev@openvswitch.org, shli@kernel.org, linux-raid@vger.kernel.org, Artur Paszkiewicz Subject: Re: [PATCH 4/6] openvswitch: convert to genradix Message-ID: <20180523222428.GC23040@kmo-pixel> References: <20180523011821.12165-1-kent.overstreet@gmail.com> <20180523011821.12165-4-kent.overstreet@gmail.com> <20180523123401.GB19987@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523123401.GB19987@bombadil.infradead.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 05:34:01AM -0700, Matthew Wilcox wrote: > On Tue, May 22, 2018 at 09:18:19PM -0400, Kent Overstreet wrote: > > the new generic radix trees have a simpler API and implementation, and > > no limitations on number of elements, so all flex_array users are being > > converted > > This doesn't really feel like it should be a flexarray / genradix user. > It just wants to allocate a lot of buckets and use them. Maybe kvmalloc > is the right approach for this user of flexarray? Yeah probably, or a rhashtable. Now that you mention it, I think the md code should definitely be using kvmalloc too.