diff options
author | Minfei Huang <mnfhuang@gmail.com> | 2016-05-23 16:24:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-23 17:04:14 -0700 |
commit | 917a35605f09c0d16aeb2e92c7fbff562e19a116 (patch) | |
tree | a81b2b758679dbbde9509b7071930f16deb9b098 /kernel/events | |
parent | 1e5768ae7500e7ce6eb73e1b263574d5c19606cf (diff) | |
download | linux-917a35605f09c0d16aeb2e92c7fbff562e19a116.tar.gz linux-917a35605f09c0d16aeb2e92c7fbff562e19a116.tar.bz2 linux-917a35605f09c0d16aeb2e92c7fbff562e19a116.zip |
kexec: make a pair of map/unmap reserved pages in error path
For some arch, kexec shall map the reserved pages, then use them, when
we try to start the kdump service.
kexec may return directly, without unmaping the reserved pages, if it
fails during starting service. To fix it, we make a pair of map/unmap
reserved pages both in generic path and error path.
This patch only affects s390. Other architecturess don't implement the
interface of crash_unmap_reserved_pages and crash_map_reserved_pages.
It isn't a urgent patch. Kernel can work well without any risk,
although the reserved pages are not unmapped before returning in error
path.
Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Xunlei Pang <xlpang@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions