svn commit: r212903 - projects/sv/sys/netinet

Attilio Rao attilio at FreeBSD.org
Mon Sep 20 16:18:39 UTC 2010


Author: attilio
Date: Mon Sep 20 16:18:39 2010
New Revision: 212903
URL: http://svn.freebsd.org/changeset/base/212903

Log:
  - Remove the test_get_lock() functionality as it only messes up the
    methods implementation.
  - Compact the sysctl numbers.

Modified:
  projects/sv/sys/netinet/netdump_client.c

Modified: projects/sv/sys/netinet/netdump_client.c
==============================================================================
--- projects/sv/sys/netinet/netdump_client.c	Mon Sep 20 16:04:44 2010	(r212902)
+++ projects/sv/sys/netinet/netdump_client.c	Mon Sep 20 16:18:39 2010	(r212903)
@@ -281,16 +281,10 @@ sysctl_force_crash(SYSCTL_HANDLER_ARGS) 
 			panic("netdump forced crash");
 			break;
 		case 3:
-			printf("\nLivelocking system while holding the "
-			    "interface lock\n");
-			nd_nic->if_ndumpfuncs->test_get_lock(nd_nic);
-			for (;;);
-			break;
-		case 5:
 			critical_enter();
 			panic("Forcing spourious critical section");
 			break;
-		case 6:
+		case 4:
 			critical_enter();
 			printf("\nLivelocking in a critical section\n");
 			for (;;);


More information about the svn-src-projects mailing list