diff options
author | pjd <pjd@FreeBSD.org> | 2011-10-21 13:53:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-10-21 13:53:06 +0000 |
commit | 146967da958e7b2151e8985c90533e943bf334f0 (patch) | |
tree | 587b6210c748cd00329ec193357634a4027dc0aa /cddl/contrib/opensolaris/lib/libzpool/common/taskq.c | |
parent | 0ba1a56c61e36e60059a56781963cbe7a8358f8f (diff) | |
download | FreeBSD-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/contrib/opensolaris/lib/libzpool/common/taskq.c')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/taskq.c | 2 |
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) |