kern/85971: minor optimization to uma

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Sun Sep 11 06:00:40 PDT 2005


>Number:         85971
>Category:       kern
>Synopsis:       minor optimization to uma
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 11 13:00:37 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Divacky Roman
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
home
>Environment:
FreeBSD witten 7.0-CURRENT FreeBSD 7.0-CURRENT #86: Fri Sep  9 11:21:55 CEST
2005     root at witten:/usr/obj/usr/src/sys/NEOLOGISM  i386

	
>Description:

in this code path we dnot have to LOCK();UNLOCK();

>How-To-Repeat:
apply the patch

>Fix:

Index: uma_core.c
===================================================================
RCS file: /home/ncvs/src/sys/vm/uma_core.c,v
retrieving revision 1.130
diff -u -r1.130 uma_core.c
--- uma_core.c	9 Sep 2005 06:03:08 -0000	1.130
+++ uma_core.c	9 Sep 2005 08:22:39 -0000
@@ -436,7 +436,7 @@
 
 			ZONE_UNLOCK(zone);
 			hash_free(&oldhash);
-			ZONE_LOCK(zone);
+			return;
 		}
 	}
 	ZONE_UNLOCK(zone);
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list