Cifs: fix kbz 216301: return corrupt/stale file content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve, List

Please find a small patch that fixes kernel bugzilla 216301 which can cause
writes to an mmaped file to corrupt data when reading it back.

The issue arises when mmaping a file under cache=none. In this case all writes go through the
direct_write codepaths directly to the server.
But IF any of the mmapped page are already present then the write will go to the server without
updating what we present to the application in the mmapped pages.





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux