Module Name: src
Committed By: riastradh
Date: Thu Nov 9 22:16:35 UTC 2017
Modified Files:
src/sys/dev/dtv: dtv_scatter.c
Log Message:
Guess pool_cache_get(pc, 0) means PR_WAITOK here.
Earlier on in the same context we use kmem_alloc(sz, KM_SLEEP).
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/dtv/dtv_scatter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dtv/dtv_scatter.c
diff -u src/sys/dev/dtv/dtv_scatter.c:1.3 src/sys/dev/dtv/dtv_scatter.c:1.4
--- src/sys/dev/dtv/dtv_scatter.c:1.3 Thu Jun 1 02:45:10 2017
+++ src/sys/dev/dtv/dtv_scatter.c Thu Nov 9 22:16:34 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: dtv_scatter.c,v 1.3 2017/06/01 02:45:10 chs Exp $ */
+/* $NetBSD: dtv_scatter.c,v 1.4 2017/11/09 22:16:34 riastradh Exp $ */
/*
* Copyright (c) 2008 Patrick Mahoney <[email protected]>
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dtv_scatter.c,v 1.3 2017/06/01 02:45:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dtv_scatter.c,v 1.4 2017/11/09 22:16:34 riastradh Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -101,7 +101,7 @@ dtv_scatter_buf_set_size(struct dtv_scat
sb->sb_page_ary[i] = old_ary[i];
/* allocate any new pages */
for (; i < npages; ++i) {
- sb->sb_page_ary[i] = pool_cache_get(sb->sb_pool, 0);
+ sb->sb_page_ary[i] = pool_cache_get(sb->sb_pool, PR_WAITOK);
/* TODO: does pool_cache_get return NULL on
* ENOMEM? If so, we need to release or note
* the pages with did allocate