Messages in this thread | | | Date | Mon, 13 Mar 2006 00:03:31 +0100 | From | Jan Blunck <> | Subject | Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)] |
| |
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@suse.de 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |