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 8AAD9C4332F for ; Tue, 18 Oct 2022 02:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbiJRCcp (ORCPT ); Mon, 17 Oct 2022 22:32:45 -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 ); 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 To: Greg Kroah-Hartman , Tejun Heo Cc: Minchan Kim , Eric Sandeen , Al Viro , Rick Lindsley , David Howells , Miklos Szeredi , Carlos Maiolino , linux-fsdevel , Kernel Mailing List 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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