From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2375E7849A for ; Mon, 2 Oct 2023 07:21:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235708AbjJBHVu (ORCPT ); Mon, 2 Oct 2023 03:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235696AbjJBHVt (ORCPT ); Mon, 2 Oct 2023 03:21:49 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD2B78E for ; Mon, 2 Oct 2023 00:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=krLUneOSyrUs/mVRktwHFDiHIgVGtBrjNYoXf4UiQMc=; b=o2ur5Fm3+TN/n6YPy9HsPGeJgy zaGYS0+RDxop5SAsUfDABxE3ehDHarB04hKtmJF/YS6SjOd9GE6jmcLN8V/VC3o5M42aXIvCpJo6v tltg2CLqKRJhbElnM40RYjBiwfuSH7AIUYNQNY0MSyfKigQBlk1a+TbQQ5YAg95KneNrF6sEjB5gM LQRAf/H/5vje1sAr86ovKfbsdBZZySjmpApYA3yN1uNiUeQfvwtwyC1mnG1L7mRNIytdce3jddFlE E7lVTEAYBeDR997Ldw/bp2fghY45PW/e2RF5heMZe5yt8+Dl/h3a+j3E1rKrl22jTSMUkFQ6URd7k nTiOnlMw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qnDFP-00EKBq-2p; Mon, 02 Oct 2023 07:21:44 +0000 Date: Mon, 2 Oct 2023 08:21:43 +0100 From: Al Viro To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org, Christian Brauner , Linus Torvalds , Namjae Jeon , David Sterba , David Howells , Miklos Szeredi , Amir Goldstein , Trond Myklebust , Bob Peterson , Steve French , Luis Chamberlain Subject: Re: [PATCH 04/15] hfsplus: switch to rcu-delayed unloading of nls and freeing ->s_fs_info Message-ID: <20231002072143.GU800259@ZenIV> References: <20231002022815.GQ800259@ZenIV> <20231002022846.GA3389589@ZenIV> <20231002023125.GE3389589@ZenIV> <20231002064912.GA2013@lst.de> <20231002071401.GT800259@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002071401.GT800259@ZenIV> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Oct 02, 2023 at 08:14:01AM +0100, Al Viro wrote: > On Mon, Oct 02, 2023 at 08:49:12AM +0200, Christoph Hellwig wrote: > > Instead of all this duplicatio in the file system, can we please just > > add a > > > > struct nls_table *s_nls; > > > > to struct super_block and RCU free it in common code and drop all the > > code in the file systems? > > It makes no sense for most of the filesystems, for one thing (note that > any use in ->lookup() does not warrant rcu delays). What's more, > how do you formulate the rules for what goes in that field when filesystem > uses more than one nls_table? Consider e.g. HFS; two separate nls_table (nls_disk, nls_io), neither needs RCU delays of any sort. On VFAT, for that matter - again, two tables, one needs RCU delay, another doesn't (both get dropped from the same helper, so both get it).