Message ID | 166606025456.13363.3829702374064563472.stgit@donald.themaw.net (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> 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 F068AC43217 for <linux-fsdevel@archiver.kernel.org>; Tue, 18 Oct 2022 02:32:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbiJRCcn (ORCPT <rfc822;linux-fsdevel@archiver.kernel.org>); Mon, 17 Oct 2022 22:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbiJRCcm (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Mon, 17 Oct 2022 22:32:42 -0400 Received: from smtp01.aussiebb.com.au (smtp01.aussiebb.com.au [IPv6:2403:5800:3:25::1001]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05AD4D810; Mon, 17 Oct 2022 19:32:41 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id B241B100633; Tue, 18 Oct 2022 13:32:38 +1100 (AEDT) X-Virus-Scanned: Debian amavisd-new at smtp01.aussiebb.com.au Received: from smtp01.aussiebb.com.au ([127.0.0.1]) by localhost (smtp01.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7WNB4p_yMR_I; Tue, 18 Oct 2022 13:32:38 +1100 (AEDT) Received: by smtp01.aussiebb.com.au (Postfix, from userid 116) id 9FE2610062E; Tue, 18 Oct 2022 13:32:38 +1100 (AEDT) Received: from donald.themaw.net (180-150-90-198.b4965a.per.nbn.aussiebb.net [180.150.90.198]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 2285B1003AE; Tue, 18 Oct 2022 13:32:35 +1100 (AEDT) Subject: [PATCH 0/2] kernfs: remove i_lock usage that isn't needed From: Ian Kent <raven@themaw.net> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Tejun Heo <tj@kernel.org> Cc: Minchan Kim <minchan@kernel.org>, Eric Sandeen <sandeen@sandeen.net>, Al Viro <viro@ZenIV.linux.org.uk>, Rick Lindsley <ricklind@linux.vnet.ibm.com>, David Howells <dhowells@redhat.com>, Miklos Szeredi <miklos@szeredi.hu>, Carlos Maiolino <cmaiolino@redhat.com>, linux-fsdevel <linux-fsdevel@vger.kernel.org>, Kernel Mailing List <linux-kernel@vger.kernel.org> Date: Tue, 18 Oct 2022 10:32:34 +0800 Message-ID: <166606025456.13363.3829702374064563472.stgit@donald.themaw.net> User-Agent: StGit/1.4 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
kernfs: remove i_lock usage that isn't needed
|
expand
|
In the patch series to change the global kernfs mutex to a read-write semaphore the inode i_lock is used in several functions. But after thinking about it the i_lock is in fact not needed. Signed-off-by: Ian Kent <raven@themaw.net> --- Ian Kent (2): kernfs: dont take i_lock on inode attr read kernfs: dont take i_lock on revalidate fs/kernfs/dir.c | 24 +++++++++++++++++------- fs/kernfs/inode.c | 4 ---- 2 files changed, 17 insertions(+), 11 deletions(-) -- Ian