diff options
| author | Al Viro <[email protected]> | 2025-06-25 19:02:11 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2025-06-29 23:03:46 +0000 |
| commit | f6cc2f4e3d304c93b44c80f50430aa40e080cc3c (patch) | |
| tree | ec7cd657bf977a64a020ef73d92da14b13138bde /drivers/gpu/drm/amd/amdgpu | |
| parent | get rid of CL_SHARE_TO_SLAVE (diff) | |
| download | kernel-f6cc2f4e3d304c93b44c80f50430aa40e080cc3c.tar.gz kernel-f6cc2f4e3d304c93b44c80f50430aa40e080cc3c.zip | |
invent_group_ids(): zero ->mnt_group_id always implies !IS_MNT_SHARED()
All places where we call set_mnt_shared() are guaranteed to have
non-zero ->mnt_group_id - either by explicit test, or by having
done successful invent_group_ids() covering the same mount since
we'd grabbed namespace_sem.
The opposite combination (non-zero ->mnt_group_id and !IS_MNT_SHARED())
*is* possible - it means that we have allocated group id, but didn't
get around to set_mnt_shared() yet; such state is transient -
by the time we do namespace_unlock(), we must either do set_mnt_shared()
or unroll the group id allocations by cleanup_group_ids().
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions
