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 [email protected] 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Jan Blunck <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Kirill Korotaev <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Neil Brown <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Kirill Korotaev <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Jan Blunck <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Neil Brown <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Jan Blunck <[email protected]>
- Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- From: Neil Brown <[email protected]>
- [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- Prev by Date: Re: [PATCH] [PNP] 'modalias' sysfs export
- Next by Date: Re: 2.6.16-rc6-mm1: BUG at fs/sysfs/inode.c:180
- Previous by thread: Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- Next by thread: Re: [PATCH] Fix shrink_dcache_parent() against shrink_dcache_memory() race (3rd updated patch)]
- Index(es):