]> git.karo-electronics.de Git - linux-beck.git/commit
ceph: try getting buffer capability for readahead/fadvise
authorYan, Zheng <zyan@redhat.com>
Tue, 25 Oct 2016 02:51:55 +0000 (10:51 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Dec 2016 22:54:27 +0000 (23:54 +0100)
commit2b1ac852eb67a6e95595e576371d23519105559f
tree076e01b89275932db841f55fb604744b5c84bc5a
parent5c341ee32881c554727ec14b71ec3e8832f01989
ceph: try getting buffer capability for readahead/fadvise

For readahead/fadvise cases, caller of ceph_readpages does not
hold buffer capability. Pages can be added to page cache while
there is no buffer capability. This can cause data integrity
issue.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/super.h