On Wed, Dec 07, 2016 at 08:37:02AM -0500, Benjamin Coddington wrote: > Optimizations to NFS to choose between READDIR and READDIRPLUS don't expect > concurrent users of nfs_readdir(), and can cause the pagecache to > repeatedly be invalidated unnecessarily for this case. Fix this by > serializing nfs_readdir() on the directory's rwsem. Just implement .iterate instead of .iterate_shared and you'll get the serialization for free. While doing that please add a comment on why it's serialized. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html