summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-10-21 13:53:06 +0000
committerpjd <pjd@FreeBSD.org>2011-10-21 13:53:06 +0000
commit146967da958e7b2151e8985c90533e943bf334f0 (patch)
tree587b6210c748cd00329ec193357634a4027dc0aa /cddl
parent0ba1a56c61e36e60059a56781963cbe7a8358f8f (diff)
downloadFreeBSD-src-146967da958e7b2151e8985c90533e943bf334f0.zip
FreeBSD-src-146967da958e7b2151e8985c90533e943bf334f0.tar.gz
libzpool task_alloc: pass only valid flags to kmem_alloc
tqflags may contain other flags besided those that are suitable for kmem_alloc == umem_alloc Submitted by: avg MFC after: 3 days
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libzpool/common/taskq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c b/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c
index 8db5d11..c407bba 100644
--- a/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c
+++ b/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c
@@ -87,7 +87,7 @@ again: if ((t = tq->tq_freelist) != NULL && tq->tq_nalloc >= tq->tq_minalloc) {
}
mutex_exit(&tq->tq_lock);
- t = kmem_alloc(sizeof (task_t), tqflags);
+ t = kmem_alloc(sizeof (task_t), tqflags & KM_SLEEP);
mutex_enter(&tq->tq_lock);
if (t != NULL)
OpenPOWER on IntegriCloud