Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2009 18:20:15 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187671 - head/sys/kern
Message-ID:  <200901241820.n0OIKFs9095243@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sat Jan 24 18:20:15 2009
New Revision: 187671
URL: http://svn.freebsd.org/changeset/base/187671

Log:
  Mark kern.ttys as MPSAFE.
  
  sysctl now allows Giantless calls, so make kern.ttys use this. If it
  needs Giant, it locks the proper TTY anyway.

Modified:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c	Sat Jan 24 15:56:44 2009	(r187670)
+++ head/sys/kern/tty.c	Sat Jan 24 18:20:15 2009	(r187671)
@@ -1053,7 +1053,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
 	return (error);
 }
 
-SYSCTL_PROC(_kern, OID_AUTO, ttys, CTLTYPE_OPAQUE|CTLFLAG_RD,
+SYSCTL_PROC(_kern, OID_AUTO, ttys, CTLTYPE_OPAQUE|CTLFLAG_RD|CTLFLAG_NOLOCK,
 	0, 0, sysctl_kern_ttys, "S,xtty", "List of TTYs");
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901241820.n0OIKFs9095243>