Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dtv Guess pool_cache_get(pc, 0) means PR_WAITOK here.
details: https://anonhg.NetBSD.org/src/rev/0781c2e5da06
branches: trunk
changeset: 357414:0781c2e5da06
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Nov 09 22:16:34 2017 +0000
description:
Guess pool_cache_get(pc, 0) means PR_WAITOK here.
Earlier on in the same context we use kmem_alloc(sz, KM_SLEEP).
diffstat:
sys/dev/dtv/dtv_scatter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 45f9dd121e3a -r 0781c2e5da06 sys/dev/dtv/dtv_scatter.c
--- a/sys/dev/dtv/dtv_scatter.c Thu Nov 09 21:57:06 2017 +0000
+++ b/sys/dev/dtv/dtv_scatter.c Thu Nov 09 22:16:34 2017 +0000
@@ -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 <pat%polycrystal.org@localhost>
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index