This patchset fixes up some cache invalidation problems that can occur when cache=loose. The main point is to ensure that we revalidate the cache prior to satisfying a read. At the same time, I added a fix for a potential problem that cropped up with NFS a while back, and to which CIFS is also vulnerable. This was originally reported by Tetsuo Handa, and as far as I can tell this fixes his testcase, assuming that you also ensure that kernel oplocks are enabled. Jeff Layton (4): cifs: convert booleans in cifsInodeInfo to a flags field cifs: new helper function: cifs_revalidate_mapping cifs: fix potential races in cifs_revalidate_mapping cifs: revalidate mapping prior to satisfying aio_read request fs/cifs/cifsfs.c | 21 +++++++++++++--- fs/cifs/cifsfs.h | 2 ++ fs/cifs/cifsglob.h | 6 +++-- fs/cifs/file.c | 16 ++++++------ fs/cifs/inode.c | 71 ++++++++++++++++++++++++++++++++++++++++++------------ 5 files changed, 86 insertions(+), 30 deletions(-) -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html