Commit 07e53c79 authored by Wang Wensheng's avatar Wang Wensheng
Browse files

mm/sharepool: Implement mg_sp_id_of_current()

ascend inclusion
category: Feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LNGH



---------------------------------------------

This is used to get the local group id of current process.  When
the process is exiting, the caller of sp_free/sp_unshare must
supply a real spg_id instead of zero. Because the current->mm is NULL
and we cannot access the spg via the mm_struct of current.

Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
parent 61df94ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment