https://github.com/torvalds/linux
Revision dd2bc473482eedc60c29cf00ad12568ce40ce511 authored by Yan, Zheng on 04 August 2017, 03:22:31 UTC, committed by Ilya Dryomov on 31 August 2017, 22:04:26 UTC
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>
1 parent cc4a41f
Raw File
Tip revision: dd2bc473482eedc60c29cf00ad12568ce40ce511 authored by Yan, Zheng on 04 August 2017, 03:22:31 UTC
ceph: fix readpage from fscache
Tip revision: dd2bc47
.get_maintainer.ignore
Christoph Hellwig <hch@lst.de>
back to top