summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2012-12-21 19:13:48 +0000
committerjimharris <jimharris@FreeBSD.org>2012-12-21 19:13:48 +0000
commit1906ac57cd7e750371015d64e4b50a2807c3ec75 (patch)
treeb9091e52e6842cf44e7a5caef4078d9941ae6966
parent5e7ea05b1afc71ededb3af74c2ab29cec62cc286 (diff)
downloadFreeBSD-src-1906ac57cd7e750371015d64e4b50a2807c3ec75.zip
FreeBSD-src-1906ac57cd7e750371015d64e4b50a2807c3ec75.tar.gz
Put kthreads under curproc so they are attached to nvmecontrol rather
than pid 0. Sponsored by: Intel
-rw-r--r--sys/dev/nvme/nvme_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nvme/nvme_test.c b/sys/dev/nvme/nvme_test.c
index 4177227..3d04ea5 100644
--- a/sys/dev/nvme/nvme_test.c
+++ b/sys/dev/nvme/nvme_test.c
@@ -287,10 +287,10 @@ nvme_ns_test(struct nvme_namespace *ns, u_long cmd, caddr_t arg)
for (i = 0; i < io_test->num_threads; i++)
#if __FreeBSD_version >= 800004
kthread_add(fn, io_test_internal,
- NULL, NULL, 0, 0, "nvme_io_test[%d]", i);
+ curproc, NULL, 0, 0, "nvme_io_test[%d]", i);
#else
kthread_create(fn, io_test_internal,
- NULL, 0, 0, "nvme_io_test[%d]", i);
+ curproc, 0, 0, "nvme_io_test[%d]", i);
#endif
tsleep(io_test_internal, 0, "nvme_test", io_test->time * 2 * hz);
OpenPOWER on IntegriCloud