HomeFreeBSD

MFC r287280 (by delphij):

Description

MFC r287280 (by delphij):
In r286705 (Illumos 5960/a2cdcdd), a separate thread is created with curproc
as parent. In the case of a send or receive, the curproc would be the
userland application that issues the ioctl. This would trigger an assertion
failure introduced in Solaris compatibility shims in r196458 when kernel is
compiled with INVARIANTS.

Fix this by using p0 (proc0 or kernel) as the parent thread when creating
the kernel threads.

Details

Provenance
mavAuthored on
Parents
rS288590: MFC r287103 (by avg): 5692 expose the number of hole blocks in a file
Branches
Unknown
Tags
Unknown