From patchwork Wed Dec 27 17:14:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 13505409 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6525FC46CD4 for ; Wed, 27 Dec 2023 17:17:44 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1rIXXL-0007Ef-MT; Wed, 27 Dec 2023 17:17:44 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rIXXJ-0007EV-6n for linux-f2fs-devel@lists.sourceforge.net; Wed, 27 Dec 2023 17:17:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uT5/dMxywzCe9BnFVdiHrPgQlnEjZC1pras5S0T2eV4=; b=ai+3NDMUyMPh1sxjb59cVj87Oo K4/K5Q7rGVtO78oX4XUzRWYzIkP9PxCd3G3cjk13uBN8oLVbVhkR1fILhTtJzfMsJeshiAF4fqKbS lwDE2zJEy7BJiGTSetfGACv/5GQKpwR5byQFGUgwPCaIOkN0EdmcwQ1EFAPFYgGpUwPo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=uT5/dMxywzCe9BnFVdiHrPgQlnEjZC1pras5S0T2eV4=; b=C gcijXPYlzi4CgpN+W5nHolrAXK9Qeu/hoabeK+c4vCZ//zEtyQXCSI8bustP9bG/5dpc3F6xEhE3a wzV5UCGGlbCWcILeCZdLgx1JC2TQJQuWA4v785ikgzJM9R+PHLfzv5KjDWhO8xdrQx0fsCovNJDQT iayM/ZqIbT6NF+OQ=; Received: from sin.source.kernel.org ([145.40.73.55]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1rIXXI-0003N9-8E for linux-f2fs-devel@lists.sourceforge.net; Wed, 27 Dec 2023 17:17:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 308BACE129A; Wed, 27 Dec 2023 17:17:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 142FBC433C7; Wed, 27 Dec 2023 17:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703697441; bh=sVWMX+bfKbpj+wN2Tqsk9pRNhX9g1Y9VDLF6ogCKIBc=; h=From:To:Cc:Subject:Date:From; b=JMposGQlfLgWKnwk0tei8OPpwATRoex/30SSzdm5BSZfMukmRFesc8v/HL53j5lJ3 5ygHH92sLb6OfeJbOPDaG013CS2haUxW4zBWw4XX4xMNKyxu5FEWVLfswqtvUVvcK/ rHj2PCY+kawWDNfJ9O2YHPgL+wLljBglBU+FDidNjy3WgqzlckuJ+vikyPItsbQH3m Bo3rimbhgnN3k7m+NNiS+dNXAPLxvPufL79li3Je7TNXy079S6n08njYHjeBBYTYzN VxAWJnDIHgNXQFMMLf+EndFo44HQCNRlsnptjCRoSn2wwHlQZbsJ/GWr7Cij58+b9g JdErdSfPipYWg== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Date: Wed, 27 Dec 2023 11:14:27 -0600 Message-ID: <20231227171429.9223-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Headers-End: 1rIXXI-0003N9-8E Subject: [f2fs-dev] [PATCH v2 0/2] Move fscrypt keyring destruction to after ->put_super X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig , Josef Bacik , linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This series moves the fscrypt keyring destruction to after ->put_super, as this will be needed by the btrfs fscrypt support. To make this possible, it also changes f2fs to release its block devices after generic_shutdown_super() rather than before. This supersedes "[PATCH] fscrypt: move the call to fscrypt_destroy_keyring() into ->put_super()" (https://lore.kernel.org/linux-fscrypt/20231206001325.13676-1-ebiggers@kernel.org/T/#u) Changed in v2: - Added a comment to f2fs patch. - Dropped btrfs patch from series; it will go in separately. - Added some Reviewed-bys. Eric Biggers (1): f2fs: move release of block devices to after kill_block_super() Josef Bacik (1): fs: move fscrypt keyring destruction to after ->put_super fs/f2fs/super.c | 13 ++++++++----- fs/super.c | 12 ++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) base-commit: fbafc3e621c3f4ded43720fdb1d6ce1728ec664e