From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: [PATCH 15/13] sysfs: Protect sysfs_refresh_inode with inode mutex. Date: Wed, 04 Nov 2009 12:51:03 -0800 Message-ID: References: <20091104142716.GD4355@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Greg Kroah-Hartman , Kay Sievers , Greg KH , linux-kernel@vger.kernel.org, Tejun Heo , Cornelia Huck , linux-fsdevel@vger.kernel.org, Eric Dumazet , Benjamin LaHaise To: "Serge E. Hallyn" Return-path: In-Reply-To: <20091104142716.GD4355@us.ibm.com> (Serge E. Hallyn's message of "Wed\, 4 Nov 2009 08\:27\:16 -0600") Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org "Serge E. Hallyn" writes: > Quoting Eric W. Biederman (ebiederm@xmission.com): >> >> In general everything that writes to vfs inodes holds the >> inode mutex, so hold the inode mutex over sysfs_refresh_inode. >> The sysfs data structures don't need this but it looks like the >> vfs might. >> >> Signed-off-by: Eric W. Biederman > > Oh right so pls disregard my last reply to patch 9 :) I also checked and nfs has the same basic structure and does take the inode mutex on these paths, inside of nfs_refresh_inode which is called from __nfs_revalidate_inode. So it is definitely the consistent thing to do. Eric