Skip to content
Commit 61600ef8 authored by Yan, Zheng's avatar Yan, Zheng Committed by Alex Elder
Browse files

ceph: check PG_Private flag before accessing page->private



I got lots of NULL pointer dereference Oops when compiling kernel on ceph.
The bug is because the kernel page migration routine replaces some pages
in the page cache with new pages, these new pages' private can be non-zero.

Signed-off-by: default avatarZheng Yan <zheng.z.yan@intel.com>
Signed-off-by: default avatarSage Weil <sage@inktank.com>
(cherry picked from commit 28c0254e)
parent f40759e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment