Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10942379rwd; Thu, 22 Jun 2023 06:56:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58bpqKd5FmLOyipKmYL3Idf6lj/6PWV+B5uKYrLOlENJVZUGcRIUooAwSaIpsErIbm3SP4 X-Received: by 2002:a05:6808:2a50:b0:3a0:5269:61a0 with SMTP id fa16-20020a0568082a5000b003a0526961a0mr3269959oib.47.1687442185106; Thu, 22 Jun 2023 06:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687442185; cv=none; d=google.com; s=arc-20160816; b=tOGIycwr5Wzv2WJCOLxp1F/q9niuj2CjW3MivAnc7lyi+APYt5KDTsK3BHzXphK16I DHIp+UxsRyOruLmZYcwfEI86wSr/DC5jPPon95XVMIKB+QCS0JKAc5R9rYCtOA4jliSJ QD80vs37ltUHl8A87N6pf5qBbc3eHjPwuXZQrr5grx9FUumzJteJIQCwMcP2DJQrlTpS ouwGeZdHYuWuBvQcGS0lwAZ2Ztm4FO+kVGenA9qvLIyfsnxb+bITZg0KO6mCaIEUnuz/ Xwa537MEqnwvPi0AGm9scoLpcqVE/GEFYDRl3Qf6wWImth7ZDMNfCnuolk/BA3atU8cZ sIjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=NU8Lw02JeDg73saYrOOM6gfGtZyrD9LEgpI4/sQumxo=; b=o4TpcIEFA1brPJytcZzdMRk5qmek5fB47iIbnwUZ9YdtOpW7Ed5l0afT4VZKPGkEpR mHmokEBkt092glsoYHZm4d8xwatOkOZjejorsZPAaBUT+RRbVMfL4lck2x9Du2GskmgY QBok3YxYAbGqur6mZ/6imltoOFzEcQPIADHL8CrN11S7VU0Ooj1hzn6PbWc4AyRxeBFR NGuR/+obuwI+cvcRz8zL6UL0vUnIE2Yow4uB2LZrHuw+mwAp5vH0WvbHaI0KhqDj7i6e x3+Ov3gKzj4UTSPXrCIdxHg2dktLarpozVG2OXAQWUxHceDfimYR7gkvg9iR01pdWB9K jKyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C2MhNVEj; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020a17090ad79400b00256976ca96esi6655634pju.126.2023.06.22.06.56.13; Thu, 22 Jun 2023 06:56:25 -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=@redhat.com header.s=mimecast20190719 header.b=C2MhNVEj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbjFVNns (ORCPT + 99 others); Thu, 22 Jun 2023 09:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjFVNnl (ORCPT ); Thu, 22 Jun 2023 09:43:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4785C1721 for ; Thu, 22 Jun 2023 06:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687441378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NU8Lw02JeDg73saYrOOM6gfGtZyrD9LEgpI4/sQumxo=; b=C2MhNVEjIXeRYa5mtY4YGzZn5ObPS79GiXo2tC0qUXM0KLZQYnOOizSsODqLO9B8RbX4BU N+MbWM8bhoKjnb7l86lBiT8cQpDDjetkzeH2yhQQqaDqHu8NvGWQLRnyAeh7YA/pdGQ2Ze LX0qNDfi2YiWx5ZpIu8uCncA4dEObgU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-609-SdsMgxbtPYSILWXZuc7tSQ-1; Thu, 22 Jun 2023 09:42:56 -0400 X-MC-Unique: SdsMgxbtPYSILWXZuc7tSQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4EC798AB385; Thu, 22 Jun 2023 13:42:56 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D804C478C7; Thu, 22 Jun 2023 13:42:55 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20230615160806.94000-1-marcel@holtmann.org> References: <20230615160806.94000-1-marcel@holtmann.org> To: Marcel Holtmann Cc: dhowells@redhat.com, linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Subject: Re: [PATCH] cachefiles: allocate static minor for /dev/cachefiles MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1886145.1687441374.1@warthog.procyon.org.uk> Date: Thu, 22 Jun 2023 14:42:54 +0100 Message-ID: <1886146.1687441374@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 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. David