Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp244501rdb; Mon, 18 Sep 2023 13:47:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDHuIDfvhI9noeOf99nujsQYXm4fV5ODNe8gmd3WYfPG91X8fejPzy379h82jyIRPe0Iug X-Received: by 2002:a05:6a00:230b:b0:682:4ef7:9b0b with SMTP id h11-20020a056a00230b00b006824ef79b0bmr13522782pfh.0.1695070076784; Mon, 18 Sep 2023 13:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695070076; cv=none; d=google.com; s=arc-20160816; b=l0Nm1drPPMzqbRLh8erB55Ls7JPtJCRUUedUpant+5IVJj+l+kz8PKA6WDBRW7Owbn 88VIS931+klROClP8EJapIfzoqaTf24dWc+01AJ91U5gQMpy4TrutzO0YVZc7wkryUuF BhUI9TcfdtpKvWGNxqCzi1XGBhFCJ3gz312R2JGkQylz/X0azXu/+4wkJD22e26cPGcQ q3i5EseKHvzNGlWoW2wMBRq+F5RMUxB2/u6Vm9KIJqsAE9bIVmD4+nOoydL5c829IsJI QnZMBJ/yB5AYgBUdj4vNbEHbklCnEIl69oA9dzMwq4rIHQLdaJDAhx3i3xuGkELKPN15 D78w== 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=ZTsaizh9uJKTEcz6c5p2g2QGw5JzmlLl2sAISOCHTb0=; fh=npjj6LvSnx8RCdCH2bNM1FezVsLhHrOV/2DsYd3hvK4=; b=dONdbQH40kkbQh/WaVasYOYfsexlu/yQRykGF7INBOEVbO036pJVL33TCp66YEWUe5 1v4d9KDQtxt/i3v56ZdzYiysq5ubKVwVuVDiPHmWx+yCtootFvlC6TpSNxNBEDmxO/Rc jOqJMLEXQR6sStW/V49yP2Dt8S/G2N7VFCdVJKlrLInYojQynz1iUYljbTOh5wwfbwVy un5cuu8Lu+RU5ekTUQFrjs4RsZ4BlELVJrFw7WKHXAVm00pdp/V2pnPCTFWrChyIEest 6b4mNxj44jhDyoBazDTcYjdaRcJfTidGL1NqRRo88mfxr7EUR9UXqUj6oyMz471e6S5V ajHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uNDNyyEy; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id n6-20020a654cc6000000b00577f6b56757si8610967pgt.495.2023.09.18.13.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uNDNyyEy; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1C2E98027F1D; Mon, 18 Sep 2023 08:29:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbjIRP2z (ORCPT + 99 others); Mon, 18 Sep 2023 11:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjIRP2l (ORCPT ); Mon, 18 Sep 2023 11:28:41 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1DC12A; Mon, 18 Sep 2023 08:26:56 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1F9761FF93; Mon, 18 Sep 2023 15:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695050653; h=from:from:reply-to: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=ZTsaizh9uJKTEcz6c5p2g2QGw5JzmlLl2sAISOCHTb0=; b=uNDNyyEycKJBCT8u9QqHT2QXUZQSV7KEwqPhRKMT8g78tvewNow7/PM0Dx8tyzi3UtSwzx cITrOJ3w7steQa1htyVtogiSbMXtJDg/hwSQ96Jf43HJYSsCYwhj25c8Sf6DEVuyfURH1Y aU9810o4zzQKZkEvrA6beovh34oBypU= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A48001358A; Mon, 18 Sep 2023 15:24:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7NFIJ5xrCGVOWQAAMHmgww (envelope-from ); Mon, 18 Sep 2023 15:24:12 +0000 Date: Mon, 18 Sep 2023 17:24:11 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Christoph Hellwig Cc: Christian Brauner , Al Viro , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Fenghua Yu , Reinette Chatre , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dennis Dalessandro , Tejun Heo , Trond Myklebust , Anna Schumaker , Kees Cook , Damien Le Moal , Naohiro Aota , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org, linux-hardening@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 15/19] kernfs: split ->kill_sb Message-ID: References: <20230913111013.77623-1-hch@lst.de> <20230913111013.77623-16-hch@lst.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fb5cgu6m55xbwjgl" Content-Disposition: inline In-Reply-To: <20230913111013.77623-16-hch@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:29:22 -0700 (PDT) --fb5cgu6m55xbwjgl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2023 at 08:10:09AM -0300, Christoph Hellwig wr= ote: > Split the kernfs_kill_sb helper into helpers for the new split > shutdown_sb and free_sb methods. Note that resctrl has very odd > locking in ->kill_sb, so this commit only releases the locking > acquired in rdt_shutdown_sb in rdt_free_sb. This is not very good > code and relies on ->shutdown_sb and ->free_sb to always be called > in pairs, which it currently is. The next commit will try to clean > this up. >=20 > Signed-off-by: Christoph Hellwig > --- > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 12 +++++++++--- > fs/kernfs/mount.c | 18 ++++++++---------- > fs/sysfs/mount.c | 7 ++++--- > include/linux/kernfs.h | 5 ++--- > kernel/cgroup/cgroup.c | 10 ++++++---- > 5 files changed, 29 insertions(+), 23 deletions(-) Reviewed-by: Michal Koutn=FD (Also, I didn't find a necessity to have kernfs_free_sb(sb) under rdtgroup_mutex, so folding the following patch of the series may be fine too.) --fb5cgu6m55xbwjgl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZQhrmQAKCRAGvrMr/1gc joA0AQCDANwuvql51NVbMvBdMPjFI6Th8lDr5goiUMJIkDInfAEAgIpZtJp32qUD 1HpNpPzzwxVHRHauSQjOpc8j5wdn+Qk= =yjqf -----END PGP SIGNATURE----- --fb5cgu6m55xbwjgl--