Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp152654pxt; Wed, 4 Aug 2021 18:38:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn38YmTZjPiD/XdiRBG4REBouPBfWmd+prWbp315+0d5MSCjQ4Lx0HNh+1wduW79yWYhOk X-Received: by 2002:a17:906:6009:: with SMTP id o9mr2115775ejj.266.1628127519316; Wed, 04 Aug 2021 18:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628127519; cv=none; d=google.com; s=arc-20160816; b=PSLnMrDegiS6RE0btrIzKDfxBU3LJsYVG0rXIABfwP0iiY8MTTxRx4amoF+mx4TUyn xjeXEeq4w2dkJk29HKGLDgB2I3r6h/I4BfmqdtZjrYYG5piYUks2EXTwATWwDDRGsptm MwHZTT+SgGZmbU17HUltzoy4JXOZIUk1se6sG6bhK1xqQkwLuUneZ1jbZiDXiiGq/r6o dLd10opZp9JeRDCdST6QIOV4NCVtV2wz6Tgi3xrF3GccC2/sxXsvzXHkENIJ3ZtrEM0A HPMWe7YWQz6JHKsW+0Mq+RUIG/ctjuxIil2BLxcrXImddC1uiKVqmQ3bae/E3q82uKYD +1Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gQo58erhRksJ9BQfpydeGlxjn6ltcBQGj/ZVuRxu4cA=; b=aen9rPNtY6Ej5B7hmiZy3evv2tRnANyBHlbVMd8jdY+DXskjTpoRLDwT89P/d1xPX0 lrAUYeIaH3SacclZVgoOtFiKNg1potgqsZ23SoRBE1MopdfmVSbQMArwQlRAA197ibup UDE/VcTrQrFtLZiKDgMnjZZgkp5VvddUlGt56wscpeg0lgwcW2Gecxb936k3ZUvu+QGX p1H6aF5LbTstthjF7Dqp2qJqJ6/QML84UO4W/mVJVl1ozWK1K+43R0zFZY+2qNqKapp+ gSeKaTgv/0Ruv7aW7daioDypEzUM9Vt6RzisSq8EL14KM/tqmKwIS/9n6v3fdtgNadKV ddpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si4071382ejj.202.2021.08.04.18.38.14; Wed, 04 Aug 2021 18:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240752AbhHDT2G (ORCPT + 99 others); Wed, 4 Aug 2021 15:28:06 -0400 Received: from mga12.intel.com ([192.55.52.136]:25752 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240720AbhHDT2C (ORCPT ); Wed, 4 Aug 2021 15:28:02 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="193587881" X-IronPort-AV: E=Sophos;i="5.84,295,1620716400"; d="scan'208";a="193587881" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 12:27:47 -0700 X-IronPort-AV: E=Sophos;i="5.84,295,1620716400"; d="scan'208";a="522091507" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.32.138]) ([10.209.32.138]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 12:27:45 -0700 Subject: Re: [PATCH v1] driver: base: Add driver filter support To: "Kuppuswamy, Sathyanarayanan" , Matthew Wilcox Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Jonathan Corbet , Dan Williams , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> <0e20cad3-8ba4-71bc-5bfd-3246ef991c6d@linux.intel.com> From: Andi Kleen Message-ID: <515ff3e6-d7aa-4d40-1cf7-7113721d68b9@linux.intel.com> Date: Wed, 4 Aug 2021 12:27:44 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <0e20cad3-8ba4-71bc-5bfd-3246ef991c6d@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/4/2021 11:29 AM, Kuppuswamy, Sathyanarayanan wrote: > > > On 8/4/21 11:08 AM, Matthew Wilcox wrote: >> Why use a doubly-linked-list here?  An allocating xarray should perform >> much better and use less memory. > > We don't expect the list to be too long. So we may not gain any > significant > advantage in terms of performance or memory when using alternate > lists. Since > linked list easier to use, we chose it. > Also even if it was long it wouldn't matter because this isn't a fast path at all. All that matters it to write the code as clearly as possible. -Andi