Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2010 16:18:39 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r212903 - projects/sv/sys/netinet
Message-ID:  <201009201618.o8KGIdsN058121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 (;;);



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