From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH 06/20] sysfs: Use dentry_ops instead of directly playing with the dcache Date: Thu, 21 May 2009 16:40:55 +0900 Message-ID: <4A150587.5080104@kernel.org> References: <1242865694-2100-1-git-send-email-ebiederm@xmission.com> <1242865694-2100-2-git-send-email-ebiederm@xmission.com> <1242865694-2100-3-git-send-email-ebiederm@xmission.com> <1242865694-2100-4-git-send-email-ebiederm@xmission.com> <1242865694-2100-5-git-send-email-ebiederm@xmission.com> <1242865694-2100-6-git-send-email-ebiederm@xmission.com> <4A14F781.6010103@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Andrew Morton , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Cornelia Huck , linux-fsdevel@vger.kernel.org, "Eric W. Biederman" To: "Eric W. Biederman" Return-path: Received: from hera.kernel.org ([140.211.167.34]:51406 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467AbZEUHlE (ORCPT ); Thu, 21 May 2009 03:41:04 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Eric W. Biederman wrote: >> Ummm... what happens if sysfs recreates those identical nodes again >> while the old dentries are lingering? The dead ones will linger till >> the submounts are gone and then look ups after that will show the new >> ones, right? > > Yep. On the vfs level. The sysfs dirent tree will reflect what is > going on with the hardware. > > This is a vfs misfeature, that I hope someday we will get fixed. > But for now it is better not to leak mount points. Especially > since no one actually mounts things on sysfs. fuse and debugfs do. :-P Acked-by: Tejun Heo -- tejun