HomeFreeBSD

The "pid" field in the LinuxKPI task struct is typically set to the thread ID

Description

The "pid" field in the LinuxKPI task struct is typically set to the thread ID
and not the process ID. Make sure the linux_task_exiting() function uses tdfind()
to lookup the BSD procedure structure pointer by the "pid" field, and only
fallback to pfind() when no match is found! This makes linux_task_exiting()
in line with the rest of the code.

Differential Revision: https://reviews.freebsd.org/D25509
Submitted by: Greg V <greg@unrelenting.technology>
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Differential Revision
D25509: LinuxKPI: support thread IDs in linux_task_exiting
Parents
rS362828: cache: lockless forward lookup with smr
Branches
Unknown
Tags
Unknown