Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3356pxt; Wed, 4 Aug 2021 14:04:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9iestFlroyN/yZ2ekbIAMLpeCBtZ+LBunC5GEzAYHhnjqMC9LYBCyP777bFbZNfYyjoGE X-Received: by 2002:a05:6638:3796:: with SMTP id w22mr1335759jal.34.1628111059939; Wed, 04 Aug 2021 14:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628111059; cv=none; d=google.com; s=arc-20160816; b=Un8YdAQZgxCHBycxBnM67GiVPGf2wERnB2XOGR2L7S7Vhb4mOkNJTaMarq1HUB1HZo 2DBFaKCwrJbUrY8gfcKIgYvxzJIR1gb224+AUHbRPM7vgohryVpptUxXHrnkBBUt6/1O kuUT3zKYVS+E3ZIEhDYBNCbfedF5DkJvjQQ9gaxe54dKO/6N/ie/N8iFkjdQEIe13UXM uGTmnQh0CU+H0/59KIk4DNY5zPWagYMWyRXe0FvptbxKxZeHA4hgYuK321xquVDxo9OF 2DniMkzjgXhW8PNdWydaJ4t2xgJiVruBWVLIg+Kj+0J1+P8Gq+35IwaeFM0ACHclTkvo hdtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/EQmTGydF1pIXOESNrwErzBdNg9CrOE9Mxb8eJMGl6U=; b=ibK69yFgrofIt0T8jV8UbPuanfl3w4WQ6jIr89BdFkX8rPZIMUydfBmsZO7r2aKBCr hIJhweP3sf7k5JB2kwT7YgIskLv26DX3Sff1Te3JrLPT69vfohfhK62bgLpiqtOanXpB 9ooKJz5fMWvtzFEXZyrSt5lgF0KcxZ927WK/Zst4KwWD3y4QQAwhCjM/hvxxzRsR9sgr 83HAxbiKHtA6VWGqg4fdX6gfhOCuDRCxAYEFbVJsYDcgiSRQwAc0wC6xKOqUrelxkqvI nJkLUjXyoDIoSav9SZuBmENRmgxoc6Jx45W17BWQojfwNMue/ewNtB8HWLl2zZMB+4Dm pOqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=lYgtUH8i; 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 b15si3951587ilv.151.2021.08.04.14.04.06; Wed, 04 Aug 2021 14:04:19 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=lYgtUH8i; 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 S238864AbhHDSqe (ORCPT + 99 others); Wed, 4 Aug 2021 14:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240404AbhHDSpv (ORCPT ); Wed, 4 Aug 2021 14:45:51 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F13C06179E for ; Wed, 4 Aug 2021 11:45:32 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id j1so4336165pjv.3 for ; Wed, 04 Aug 2021 11:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/EQmTGydF1pIXOESNrwErzBdNg9CrOE9Mxb8eJMGl6U=; b=lYgtUH8iYVPqtvlrViEDj4VisTlI5BAnqJr+1CvEvld5nN6Rr/R75P9DnspBYe8FOA GvhNwqEoUnzWPmWB8A28qBG6O+IKvGIoCEYJ6HWqGjl3m6xhmUIME+FBpli2J/sYtzb1 0ZM6tR/MN7vxyJQIPM8zHlHp4FJpGRdzghkChnowHjsbAY5DD7MPKN9e8dHGqkCH26t5 WoEAW9u+JDUK+G5crAlmyWI+HlNoFIGDM03OwBFC3JWb/rfC5H7glsPCimWq1uuR/C9O 85bW3wAHCCflHFpo+vNcqoFkuW/Vp97Wprb+sMzRVocNrGf+R482OPaB/PGxZE/4Zaoa GVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/EQmTGydF1pIXOESNrwErzBdNg9CrOE9Mxb8eJMGl6U=; b=Sxi3QrnpI+99gZUVed2y+choWgxeoIS5WTNb4JaqujGn7cJwGCY7QrPHULVD6tzkJ2 YMs2rY0ItQ6f7W53n6FjHtNRmCmQIxWitYHgnlVmLrWO5uoX7HxfcJlj7Ib58XEgcYN1 JVO4Xvs2Li3SfdxgFArSckUUhbUbLQk569Yn++fUoXFJ3lnUBWtjjEs5nreX0kPjEdf/ 33EZbwcWruYUI1PdqE2vZzJIZ1yptqnGoITdLjHe01YmG0WvzBIDM311EG8Q0M//mdbM kbzH49WYYkOG5K2uLf1qhqqVg2g7v9kbaND8zbCA+pSIy8SclF7/qZYKmKCmNCQ/to26 aBUg== X-Gm-Message-State: AOAM532AdBg8EbZHRQYAbpKYvTfN7t5d4D/TvZQOzoUxBWUhIFHFe8Cn nLZPYn7fJC6lBj4aHBu2rfJ+FKY2lXpaAvO3sRXmnA== X-Received: by 2002:a63:3c7:: with SMTP id 190mr530402pgd.240.1628102731653; Wed, 04 Aug 2021 11:45:31 -0700 (PDT) MIME-Version: 1.0 References: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> In-Reply-To: From: Dan Williams Date: Wed, 4 Aug 2021 11:45:20 -0700 Message-ID: Subject: Re: [PATCH v1] driver: base: Add driver filter support To: Matthew Wilcox Cc: Kuppuswamy Sathyanarayanan , Greg Kroah-Hartman , "Rafael J . Wysocki" , Jonathan Corbet , Andi Kleen , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux Doc Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 4, 2021 at 11:09 AM Matthew Wilcox wrote: > > 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. Sounds reasonable to me.