mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
2483ab734df8e16a6cc041d3f99865157e2da2cc
The code was using task_pid_nr(current) to get the process ID, which returns the Thread ID (TID) instead of the actual Process ID (PID) for multi-threaded applications. This caused problems with endpoint reservation tracking since different threads of the same process would appear as different owners. current->tgid (Thread Group ID) represents the actual Process ID in Linux. task_pid_nr(current) returns the Thread ID which is unique for each thread within a process. Using TGID ensures all threads from the same process are properly identified as belonging to the same process. This fix ensures proper endpoint reservation tracking across all threads of a multi-threaded application. Bug 5260259 Change-Id: If2f864dc4456de71b1df49e64320463a24203c68 Signed-off-by: Suneel Kumar Pemmineti <spemmineti@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3360307 Reviewed-by: Simon Je <sje@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Joshua Cha <joshuac@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Jungho Kim <junghok@nvidia.com>
Description
No description provided