Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp381510pxt; Wed, 4 Aug 2021 13:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj1m3zy3IG8mKYVDnbg7TMMO9CkFejfZ4/Abk5P6wRf+vqCBrO5fhHmu+nwDcf5HYbFHVJ X-Received: by 2002:a05:6638:3824:: with SMTP id i36mr1260537jav.11.1628109969359; Wed, 04 Aug 2021 13:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628109969; cv=none; d=google.com; s=arc-20160816; b=0RuOEbT51x25uGPdZaJEZijRqsjdOyLP1lPA8DGon6qBPnHC50Mp/1JTX/nABSslnj hr2glsxggeMNX5pm1ur8W6QdQ1iGNuthcdmBKdPYyq9cGyLxTsrKRDEz2S8LA/K5TeeP AHlLnUSbc+vTFdFJJV8+ul2b1P1e0Pq7srETtDJceheN0XcYFpnk41KfXPyi4gSzLb1V A6Z9g2ARJoEatufHMwhQwSLlN0FYYQqce3s4G4Bw3E9Td5MR+fxbig9zHR5R1JBDdA/9 +mnmk1OEfCD8DVkrh/NYJ4e/QGrQCzFcuBybsujSIHx/zzRLqOm2ELwzcdBMgbGVtMCt tS5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HpBw3SJs+17F/1MWyg77w4ci6hzkc6ALjrYnSEiZYhE=; b=NEBxqhBcXw/hlE0myOwcz3scUoyj7i7vsaiEGTnFYormfVKl78tW7t8XXjCzV1nAXn 2IPB5gSx9EV2Sa0o2AywKMxxPhP8gOZk+hczgxTsXQm6I5Ml0mytnboWdsnB4oRWMXO7 9CZe4+de5JzuYrdy6CQpEtRr27y1hzi0owIcZOAlUgObp9hwN7Y8DWGdUvJ+cGS4W+E5 G/+5MYl0ZY96KEpBt90TyScgngFGziTpHZ8gyS+0SBaIjcvpjAwHWyIv2u0mUY2SUHJ3 nt4MSPBIRGYyMrz1M8OfnfIpykWBKVljmvdFoqmGU00BOXWGC8n9/okDjUKhF9s+6ISq WLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="G/k6vjPc"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si1746642ila.46.2021.08.04.13.45.53; Wed, 04 Aug 2021 13:46:09 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="G/k6vjPc"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240030AbhHDSJK (ORCPT + 99 others); Wed, 4 Aug 2021 14:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240015AbhHDSJK (ORCPT ); Wed, 4 Aug 2021 14:09:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43AE5C0613D5; Wed, 4 Aug 2021 11:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HpBw3SJs+17F/1MWyg77w4ci6hzkc6ALjrYnSEiZYhE=; b=G/k6vjPcW/kzCpzvsN+sYmzFSv CdcEZ/91s4KWsHu/Dvn8P1s/6KeMdlTu43jvU0OuYhldWPXIDlVEXXHf9isG+KQU6HscnaFCMGezT 9gIRhmuGjCfHo7MSWi/woP4LCM6zTJr8AW3/hGysYZyRRvJT2GCiGWgou1VLOKUr5SyCG0JfpsWDT GNHv3IeZBAEJ3yUGwBHxC5rou7wM3RE0w8C5yEDYXCCU3UxXFPaecn3DWWVUn/cj+g6hbaMhGiYV9 iYK/wiKpaUOsewEQkGL2EB6WpPw9yUv51rxF2PMy1lvV/zY5eQkUHx7U20AhlZamiAP4AFMkxZOAu 3Dxf2Qbw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBLJG-0069Rj-ET; Wed, 04 Aug 2021 18:08:14 +0000 Date: Wed, 4 Aug 2021 19:08:06 +0100 From: Matthew Wilcox To: Kuppuswamy Sathyanarayanan Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Jonathan Corbet , Dan Williams , Andi Kleen , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v1] driver: base: Add driver filter support Message-ID: References: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 10:43:22AM -0700, Kuppuswamy Sathyanarayanan wrote: > +/* Driver allow list */ > +static LIST_HEAD(driver_allow_list); > +/* Driver deny list */ > +static LIST_HEAD(driver_deny_list); Why use a doubly-linked-list here? An allocating xarray should perform much better and use less memory.