1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Add M_WAITOK

This commit is contained in:
Poul-Henning Kamp 2003-02-19 22:51:33 +00:00
parent 340c35de6a
commit 0c977c9c53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111146
2 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ g_stat_new(void *id)
break;
}
if (spp == NULL) {
spp = g_malloc(sizeof *spp, M_ZERO);
spp = g_malloc(sizeof *spp, M_ZERO | M_WAITOK);
TAILQ_INSERT_TAIL(&pagelist, spp, list);
spp->stat = g_malloc(PAGE_SIZE, M_ZERO);
spp->stat = g_malloc(PAGE_SIZE, M_ZERO | M_WAITOK);
spp->nfree = statsperpage;
}
gsp = spp->stat;

View File

@ -149,7 +149,7 @@ allocdev(void)
LIST_REMOVE(si, si_hash);
} else if (stashed >= DEVT_STASH) {
MALLOC(si, struct cdev *, sizeof(*si), M_DEVT,
M_USE_RESERVE | M_ZERO);
M_USE_RESERVE | M_ZERO | M_WAITOK);
} else {
si = devt_stash + stashed++;
bzero(si, sizeof *si);