Re: [PATCH] configfs: Silence lockdep on mkdir(), rmdir() and configfs_depend_item()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Thursday, December 18, 2008 - 5:28 am

On Thu, 2008-12-18 at 12:56 +0100, Peter Zijlstra wrote:

In fact, both (configfs) mkdir and rmdir seem to synchronize on
su_mutex..

 mkdir B/C/bar

   C.i_mutex
     su_mutex

vs

 rmdir foo

   parent(foo).i_mutex
     foo.i_mutex
       su_mutex


once holding the rmdir su_mutex you can check foo's user-content, since
any mkdir will be blocked. All you have to do is then re-validate in
mkdir's su_mutex that !IS_DEADDIR(C).

Does that sound plausible, or am I missing something obvious.. ?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
configfs, dlm_controld & lockdep, Steven Whitehouse, (Thu Dec 11, 7:20 am)
Re: configfs, dlm_controld & lockdep, Louis Rilling, (Thu Dec 11, 7:44 am)
Re: configfs, dlm_controld & lockdep, Joel Becker, (Thu Dec 11, 10:34 am)
Re: configfs, dlm_controld & lockdep, Louis Rilling, (Fri Dec 12, 3:06 am)
Re: [PATCH] configfs: Silence lockdep on mkdir(), rmdir() ..., Steven Whitehouse, (Thu Dec 18, 4:26 am)
Re: [PATCH] configfs: Silence lockdep on mkdir(), rmdir() ..., Peter Zijlstra, (Thu Dec 18, 5:28 am)
Make lockdep happy with configfs, Louis Rilling, (Thu Dec 18, 11:00 am)
Re: Make lockdep happy with configfs, Louis Rilling, (Mon Jan 26, 4:51 am)
Re: Make lockdep happy with configfs, Joel Becker, (Tue Jan 27, 8:44 pm)