Skip to content

checkpoint/restart: sysvshm fixes and hugetlb support

Nathan Lynch containers 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8sysvshm: check for hugetlb before assuming shmemipc/checkpoint_shm.c+7 -30 replies
2/8sysvshm: report error on failure to reattach, avoid crashipc/shm.c+1 -13 replies
3/8checkpoint/sysvshm: release rwsem earlier during restoreipc/checkpoint_shm.c+4 -40 replies
4/8checkpoint/ipc: allow shmat callers to specify ipc namespaceinclude/linux/shm.h ipc/shm.c+13 -100 replies
5/8checkpoint/restart of anonymous hugetlb mappingsinclude/linux/checkpoint.h include/linux/checkpoint_hdr.h include/linux/hugetlb.h +2 more+300 -13 replies
6/8remove VM_HUGETLB and VM_RESERVED from CKPT_VMA_NOT_SUPPORTEDinclude/linux/checkpoint.h+1 -21 reply
7/8hugetlbfs checkpoint/restart hooksfs/hugetlbfs/inode.c+23 -10 replies
8/8checkpoint/restart of SysV SHM_HUGETLB regionsipc/checkpoint_shm.c+142 -122 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMatt Helsley
1/8
2/8R-b
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] checkpoint/restart: sysvshm fixes and hugetlb support

The following patches implement c/r for huge pages and fix a couple of minor issues in the SysV shm c/r code I noticed in the process.

Tested on i386, x86_64, and ppc64.

Nathan Lynch (8):
sysvshm: check for hugetlb before assuming shmem
sysvshm: report error on failure to reattach, avoid crash checkpoint/sysvshm: release rwsem earlier during restore checkpoint/ipc: allow shmat callers to specify ipc namespace checkpoint/restart of anonymous hugetlb mappings remove VM_HUGETLB and VM_RESERVED from CKPT_VMA_NOT_SUPPORTED hugetlbfs checkpoint/restart hooks checkpoint/restart of SysV SHM_HUGETLB regions

 fs/hugetlbfs/inode.c           |   24 ++++-
 include/linux/checkpoint.h     |    7 +-
 include/linux/checkpoint_hdr.h |   16 +++
 include/linux/hugetlb.h        |   11 ++
 include/linux/shm.h            |    8 +-
 ipc/checkpoint_shm.c           |  172 ++++++++++++++++++++++++---
 ipc/shm.c                      |   17 ++--
 mm/checkpoint.c                |   13 ++
 mm/hugetlb.c                   |  257 ++++++++++++++++++++++++++++++++++++++++
 9 files changed, 491 insertions(+), 34 deletions(-)
Signature · 1 line
1.7.2.2