Author: markj
Date: Tue Feb 27 16:51:09 2018
New Revision: 330075
URL: https://svnweb.freebsd.org/changeset/base/330075

Log:
  Give the 0th domain's page daemon thread a consistent name.
  
  Page daemon threads for other domains show up in ps(1) output as
  "pagedaemon/domN", so let that be the case for domain 0 as well.
  
  Submitted by: Kevin Bowling <kevin.bowl...@kev009.com>
  MFC after:    1 week
  Differential Revision:        https://reviews.freebsd.org/D14518

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c    Tue Feb 27 16:08:08 2018        (r330074)
+++ head/sys/vm/vm_pageout.c    Tue Feb 27 16:51:09 2018        (r330075)
@@ -1935,6 +1935,7 @@ vm_pageout(void)
        int i;
 
        swap_pager_swap_init();
+       snprintf(curthread->td_name, sizeof(curthread->td_name), "dom0");
        error = kthread_add(vm_pageout_laundry_worker, NULL, curproc, NULL,
            0, 0, "laundry: dom0");
        if (error != 0)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to