FreeBSD Bugzilla – Attachment 33526 Details for
Bug 54890
[PATCH] don't hold Giant when calling kmem_malloc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
uma_core.c.diff
uma_core.c.diff (text/plain), 819 bytes, created by
Lukas Ertl
on 2003-07-27 01:10:15 UTC
(
hide
)
Description:
uma_core.c.diff
Filename:
MIME Type:
Creator:
Lukas Ertl
Created:
2003-07-27 01:10:15 UTC
Size:
819 bytes
patch
obsolete
>Index: sys/vm/uma_core.c >=================================================================== >RCS file: /usr/local/bsdcvs/src/sys/vm/uma_core.c,v >retrieving revision 1.62 >diff -u -r1.62 uma_core.c >--- sys/vm/uma_core.c 26 Jul 2003 03:55:32 -0000 1.62 >+++ sys/vm/uma_core.c 26 Jul 2003 17:14:09 -0000 >@@ -706,15 +706,8 @@ > wait &= ~M_ZERO; > > if (booted || (zone->uz_flags & UMA_ZFLAG_PRIVALLOC)) { >- if ((wait & M_NOWAIT) == 0) { >- mtx_lock(&Giant); >- mem = zone->uz_allocf(zone, >- zone->uz_ppera * UMA_SLAB_SIZE, &flags, wait); >- mtx_unlock(&Giant); >- } else { >- mem = zone->uz_allocf(zone, >- zone->uz_ppera * UMA_SLAB_SIZE, &flags, wait); >- } >+ mem = zone->uz_allocf(zone, >+ zone->uz_ppera * UMA_SLAB_SIZE, &flags, wait); > if (mem == NULL) { > ZONE_LOCK(zone); > return (NULL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54890
: 33526