svn commit: r244549 - head/sys/dev/nvme
Jim Harris
jimharris at FreeBSD.org
Fri Dec 21 19:13:49 UTC 2012
Author: jimharris
Date: Fri Dec 21 19:13:48 2012
New Revision: 244549
URL: http://svnweb.freebsd.org/changeset/base/244549
Log:
Put kthreads under curproc so they are attached to nvmecontrol rather
than pid 0.
Sponsored by: Intel
Modified:
head/sys/dev/nvme/nvme_test.c
Modified: head/sys/dev/nvme/nvme_test.c
==============================================================================
--- head/sys/dev/nvme/nvme_test.c Fri Dec 21 18:58:19 2012 (r244548)
+++ head/sys/dev/nvme/nvme_test.c Fri Dec 21 19:13:48 2012 (r244549)
@@ -287,10 +287,10 @@ nvme_ns_test(struct nvme_namespace *ns,
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);
More information about the svn-src-all
mailing list