Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11032915rwd; Thu, 22 Jun 2023 07:59:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tPARpomuOJG4P7Mzz8TvBqxl0CDqxKn4rnS/cvO1EZXaZyFPNxlkc5b25+UlTB7ys1Pzb X-Received: by 2002:a05:6a21:9983:b0:121:bf66:a715 with SMTP id ve3-20020a056a21998300b00121bf66a715mr9961398pzb.45.1687445951553; Thu, 22 Jun 2023 07:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687445951; cv=none; d=google.com; s=arc-20160816; b=e6C+wasOTVVChS+hzU8g3OFb9Vn2INaXrd4TVmLzgn8S6etQDOCyrrsTFgD4iUeiSM Lm/OaQKZac48a0y32QRKPI522K4Ty9D4yNFf1iUDKTRAD8lOn+o7pyvM7qE5LshTjyIQ ORI2X2V/sK2F1QoG/BppjGtVMsTsxAbCfNyKq9ws2Anqk8ukvkyUPu46EQd7a0oiumGJ 5e7RL71T5OgSL8Q0qWuKCnhgTV/U/ONteuPDj7DqHNTlrmaCbLTN3kwoIvCE4jqF83jW 2eexgPsTRY2pw+PWWuYo40tm6Bg7UyIFz7G2Ap9fQBVFCahRCIfHbQtnHezV+5IogYQW LFEA== 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=Nh8NTQyLt1YOVeSrVnoI2RbYhRtnTaIoxsanbJDtVqk=; b=ah8Jn9J5yVyflf64z5cWF2GcAR9v6kZWCAzqWl53AB/VOL3IMzkJ0r9b0xr2Fs+Pti wn1WTBEk7FNDRdUxHVdhxAOtdyV+XeibdUBLTAYW4ZBEGJlQopbzjaEtmaJvRru0rJhO XbYTDrPTm02zSB3/KGW4vEItkZMKGMSh3jm/K2Hmrw+ybU4o2cdlXEpLluxZCU8dGgrI qMGhAvc7Di8jAUNySMMMAMhAdkz88qDYcXFPDEtLsZ30q8ZhdSABfzHk/j9Ohn58g2Ov hJufmZIS+itXsy1tXdRVEmYBsxgpBL9GFtMEOdSwHYEZDJ1mJevLHmCCpIY7kCED9ZuX gWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FizK5F5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a056a00000200b00643ba887601si6312928pfk.307.2023.06.22.07.58.59; Thu, 22 Jun 2023 07:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FizK5F5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232016AbjFVOwK (ORCPT + 99 others); Thu, 22 Jun 2023 10:52:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjFVOv7 (ORCPT ); Thu, 22 Jun 2023 10:51:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2BD1212A for ; Thu, 22 Jun 2023 07:51:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A7DE961888 for ; Thu, 22 Jun 2023 14:51:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5AF0C433C0; Thu, 22 Jun 2023 14:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687445481; bh=b+2YQt/L3f18cPrjrpPVNB62Jp6PLhPadnkvondgfqo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FizK5F5LJERjZ8EtqyjdqGZvydLRYrIzRHMTTFw8Fn8P9/oPylegaFeNt+QqmrbM0 28uRyY59h8Oo8qBLgGBXtARH8GKKhSdz844UJj9SAaGIogWMxsaCMslJ5WeAbnK3Z4 fM+wws01ii+g+GF4jXelZQKZUhRodhQ1w0vwURGs= Date: Thu, 22 Jun 2023 16:51:18 +0200 From: Greg KH To: David Howells Cc: Marcel Holtmann , linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, arnd@arndb.de Subject: Re: [PATCH] cachefiles: allocate static minor for /dev/cachefiles Message-ID: <2023062245-synopses-scared-9d96@gregkh> References: <20230615160806.94000-1-marcel@holtmann.org> <1886146.1687441374@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1886146.1687441374@warthog.procyon.org.uk> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 02:42:54PM +0100, David Howells wrote: > Marcel Holtmann wrote: > > > The cachefiles misc character device uses MISC_DYNAMIC_MINOR and thus > > doesn't support module auto-loading. Assign a static minor number for it > > and provide appropriate module aliases for it. This is enough for kmod to > > create the /dev/cachefiles device node on startup and facility module > > auto-loading. > > Why? The systemd unit file for it just modprobe's the module first. It's a > specialist device file only for use by the appropriate daemon. And you really don't want to have auto-module-loading when trying to open a /dev/foo file, that way lies madness in the past, please let's learn from our mistakes :) thanks, greg k-h