From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH 09/14] sysfs: Move all of sysfs_move_dir under sysfs_mutex Date: Tue, 31 Jul 2007 20:09:12 +0900 Message-ID: <46AF1858.1020009@suse.de> References: <1182446577.8138.29.camel@localhost> <46ADE24E.8020502@suse.de> <46ADEE35.8000109@sw.ru> <46ADF003.3010100@suse.de> <46AEAF79.6080404@suse.de> <46AEBA87.6000400@suse.de> <46AEEF75.2030101@suse.de> <46AEEFA6.4000901@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: Linux Containers , Greg KH , Greg KH , Dave Hansen List-Id: containers.vger.kernel.org Eric W. Biederman wrote: > This patch modifies sysfs_move_dir to perform all of it's > operations under the sysfs_mutex. By looking for conflicts > using sysfs_find_dirent we accidentally moving something > onto a name that already exists but just not in the dcache > right now. > > Two s_dentry usages are killed. > > And it has probably become unnecessary to grab i_mutex at > all but I'm not brave enough to do that just yet. > > Signed-off-by: Eric W. Biederman Acked-by: Tejun Heo -- tejun