Repository navigation
Commit 08bc035
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 <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Steve French <smfrench@gmail.com>1 parent a1d0b84 commit 08bc035
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
728 | 741 | | |
729 | 742 | | |
730 | 743 | | |
| |||
881 | 894 | | |
882 | 895 | | |
883 | 896 | | |
884 | | - | |
| 897 | + | |
885 | 898 | | |
886 | 899 | | |
887 | 900 | | |
| |||
939 | 952 | | |
940 | 953 | | |
941 | 954 | | |
942 | | - | |
| 955 | + | |
943 | 956 | | |
944 | 957 | | |
945 | 958 | | |
| |||
0 commit comments