Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]

From: Jan Blunck
Date: Sun Mar 12 2006 - 18:00:54 EST


On Mon, Mar 13, Neil Brown wrote:

> No you don't.

Err, you are right. But this brings a new idea to my mind: why don't we use
s_umount to prevent umounting while we prune one dentry? Something like:

if (down_read_trylock()) {
if (s_root)
prune_one_dentry()
up_read()
}
// else just skip it

So maybe our prunes counter isn't the only way to go. Comments?

Regards,
Jan

--
Jan Blunck jblunck@xxxxxxx
SuSE LINUX AG - A Novell company
Maxfeldstr. 5 +49-911-74053-608
D-90409 Nürnberg http://www.suse.de
-
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/