Re: Checking page_count(page) in invalidate_complete_page

Steve Dickson
2006-09-25T22:57:58Z

Chuck Lever wrote:
>
> It seems that the NFS client could now safely use a page cache
> invalidator that would wait for other page users to ensure that every
> page is invalidated properly, instead of skipping the pages that can't
> be immediately invalidated.
>
> In my opinion that would be the correct fix here for NFS.
I would have to agree with this... in debugging this I
changed the invalidate_inode_pages2 in nfs_revalidate_mapping
to truncate_inode_pages() for non-file inode which also seem
to work... So it does beg the question as to why aren't we
waiting for page to be invalidated? Is there some type of
VM deadlock we are trying to avoid?

steved.