Re: [BUG] deadlock between configfs_rmdir() and sys_rename() (WAS Re: [RFC][PATCH 4/4] configfs: Make multiple default_group) destructions lockdep friendly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Louis Rilling <Louis.Rilling@...>
Cc: <ocfs2-devel@...>, <linux-kernel@...>
Date: Monday, June 9, 2008 - 9:58 pm

On Mon, Jun 09, 2008 at 02:54:43PM +0200, Louis Rilling wrote:

	Ugh, thanks for catching this :-(
 

	What actual targets are you renaming?  Sibling default groups?


	I think the former actually works nicely.  We are playing with
the subtree, and want to keep all operations out of it.  Except, of
course, that we come into rmdir() with our parent i_mutex taken, so that
violates the ordering of the rename locks, right?
	I'm not against the latter AT ALL.  I just haven't come up with
it yet - we can't remove parts of the tree, it must be all or none.
Hence, we lock them all speculatively.

Joel

-- 

Life's Little Instruction Book #15

	"Own a great stereo system."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] deadlock between configfs_rmdir() and sys_rename()..., Joel Becker, (Mon Jun 9, 9:58 pm)