>>>>> " " == Andrew Morton <email@example.com> writes:
> 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?
Not good enough unless you add those checks at the VFS/MM level. Think
for instance about mmap() where the filesystem is usually not involved
once a pagein has occurred.
> Do we really need to invalidate individual pages, or is it
> real-life acceptable to invalidate the whole mapping?
Invalidating the mapping is certainly a good alternative if it can be
Note that in doing so, we do not want to invalidate any reads or
writes that may have been already scheduled. The existing mapping
still would need to hang around long enough to permit them to
> 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 ;)
invalidate_inode_pages() *was* NFS-specific until you guys hijacked it
for other purposes in 2.5.x ;-)
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/
This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:40 EST