]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix readpage from fscache
authorYan, Zheng <zyan@redhat.com>
Fri, 4 Aug 2017 03:22:31 +0000 (11:22 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 31 Aug 2017 22:04:26 +0000 (00:04 +0200)
commit2ffd28ad6ab6ac6140b5df05a7dda4b506c15f98
treee06527af35691390fce75993b0986cad10be1225
parente488b92b65d56bef2f157e34026beb9decec0c9d
ceph: fix readpage from fscache

ceph_readpage() unlocks page prematurely prematurely in the case
that page is reading from fscache. Caller of readpage expects that
page is uptodate when it get unlocked. So page shoule get locked
by completion callback of fscache_read_or_alloc_pages()

Cc: stable@vger.kernel.org # 4.1+, needs backporting for < 4.7
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/cache.c