cifs: revalidate mapping prior to satisfying read_iter request with cache=loose
authorJeff Layton <[email protected]>
Fri, 23 May 2014 10:50:21 +0000 (06:50 -0400)
committerSteve French <[email protected]>
Thu, 19 Jun 2014 18:34:04 +0000 (13:34 -0500)
commit08bc03539d38508eff3fd470a82ea422ce279f6e
tree8ccfdec6410f15e33ed4e42b748ed773aaa55632
parenta1d0b84c308d7fdfb67eb76498116a6c2fdda507
cifs: revalidate mapping prior to satisfying read_iter request with cache=loose

Before satisfying a read with cache=loose, we should always check
that the pagecache is valid before allowing a read to be satisfied
out of it.

Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/cifsfs.c