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

From: Peter Zijlstra
Date: Mon Jan 26 2009 - 08:41:41 EST


On Mon, 2009-01-26 at 14:24 +0100, Louis Rilling wrote:

> However configfs_rmdir() and configfs_mkdir() (recursively) lock inodes because
> this is how the VFS works when removing/adding entries under a directory which
> has already lived in the dcache.

Ok, so then I'm not understanding things correctly.

Its not a locking correctness thing, but simply not being able to do it
from the vfs calls because those assume locks held?

Can't you simply punt the work to a worklet once you've created/removed
the non-default group, which can be done from within the vfs callback ?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/