]> git.baikalelectronics.ru Git - kernel.git/commit
mm,hugetlb: remove mlock ulimit for SHM_HUGETLB
authorzhangyiru <zhangyiru3@huawei.com>
Tue, 9 Nov 2021 02:31:27 +0000 (18:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Nov 2021 18:02:48 +0000 (10:02 -0800)
commitc046d24b77e3ad45a7bb1344e3fa95b52a005ba3
treed134ddfb570383d3ef44e0c1bc22651ea8ca1428
parent1d20c40cade8ecc3de63b57f0bc8fc0fbd51c0a2
mm,hugetlb: remove mlock ulimit for SHM_HUGETLB

Commit 227b81e918be ("mm, hugetlb: add thread name and pid to
SHM_HUGETLB mlock rlimit warning") marked this as deprecated in 2012,
but it is not deleted yet.

Mike says he still sees that message in log files on occasion, so maybe we
should preserve this warning.

Also remove hugetlbfs related user_shm_unlock in ipc/shm.c and remove the
user_shm_unlock after out.

Link: https://lkml.kernel.org/r/20211103105857.25041-1-zhangyiru3@huawei.com
Signed-off-by: zhangyiru <zhangyiru3@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Liu Zixian <liuzixian4@huawei.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: wuxu.wu <wuxu.wu@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c
include/linux/hugetlb.h
ipc/shm.c
mm/memfd.c
mm/mmap.c