]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r287280 (by delphij):
authormav <mav@FreeBSD.org>
Sat, 3 Oct 2015 11:23:08 +0000 (11:23 +0000)
committermav <mav@FreeBSD.org>
Sat, 3 Oct 2015 11:23:08 +0000 (11:23 +0000)
commit3cfde751dc37cf5999e6d39b71945077cca5651f
treebab0851189311e88037304f017f379619fd34732
parentb237c6cdd85588040bf87bd3f14becf76ba63d78
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.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c