Well it has to be a new thread, or user processes.
Would it be possible to mark the inode as "needs invalidation",
and make user processes check that flag once they have i_sem?
> The main problem is that the VFS/MM has no way of relabelling pages as
> being invalid or no longer up to date: I once proposed simply clearing
> PG_uptodate on those pages which cannot be cleared by
> invalidate_inode_pages(), but this was not to Linus' taste.
Yes, clearing PageUptodate without holding the page lock is
Do we really need to invalidate individual pages, or is it real-life
acceptable to invalidate the whole mapping?
Doing an NFS-special invalidate function is not a problem, btw - my
current invalidate_inode_pages() is just 25 lines. It's merely a
matter of working out what it should do ;)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/