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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to