mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-23 16:01:42 +00:00
Try harder not to recurse.
This commit is contained in:
parent
0034fd6fff
commit
eeac0e83b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154928
@ -477,9 +477,11 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
|
||||
"smallalloc", 0);
|
||||
in_sleep--;
|
||||
goto retry;
|
||||
} else if (in_alloc) {
|
||||
mtx_unlock(&smallalloc_mtx);
|
||||
return (NULL);
|
||||
}
|
||||
if (wait & M_WAITOK)
|
||||
in_alloc = 1;
|
||||
in_alloc = 1;
|
||||
mtx_unlock(&smallalloc_mtx);
|
||||
/* Try to alloc 1MB of contiguous memory. */
|
||||
ret = arm_uma_do_alloc(&sp, bytes, zone == l2zone ?
|
||||
|
Loading…
Reference in New Issue
Block a user