Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 14:53:50 +0200 (CEST)
From:      Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/85971: minor optimization to uma
Message-ID:  <200509111253.j8BCrooO058181@eva.fit.vutbr.cz>
Resent-Message-ID: <200509111300.j8BD0cFY057532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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