Use M_WAITOK in sf_buf_init().
Sponsored by: Netflix Sponsored by: Nginx, Inc.
This commit is contained in:
parent
818d40d033
commit
eaf78ad3f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269808
@ -99,8 +99,7 @@ sf_buf_init(void *arg)
|
||||
TAILQ_INIT(&sf_buf_freelist);
|
||||
sf_base = kva_alloc(nsfbufs * PAGE_SIZE);
|
||||
sf_bufs = malloc(nsfbufs * sizeof(struct sf_buf), M_TEMP,
|
||||
M_NOWAIT | M_ZERO);
|
||||
KASSERT(sf_bufs, ("%s: malloc failure", __func__));
|
||||
M_WAITOK | M_ZERO);
|
||||
for (i = 0; i < nsfbufs; i++) {
|
||||
sf_bufs[i].kva = sf_base + i * PAGE_SIZE;
|
||||
TAILQ_INSERT_TAIL(&sf_buf_freelist, &sf_bufs[i], free_entry);
|
||||
|
Loading…
Reference in New Issue
Block a user