svn commit: r226613 -
head/cddl/contrib/opensolaris/lib/libzpool/common
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Oct 21 13:53:08 UTC 2011
Author: pjd
Date: Fri Oct 21 13:53:06 2011
New Revision: 226613
URL: http://svn.freebsd.org/changeset/base/226613
Log:
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
Modified:
head/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c
Modified: head/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c Fri Oct 21 13:44:26 2011 (r226612)
+++ head/cddl/contrib/opensolaris/lib/libzpool/common/taskq.c Fri Oct 21 13:53:06 2011 (r226613)
@@ -87,7 +87,7 @@ again: if ((t = tq->tq_freelist) != NULL
}
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)
More information about the svn-src-head
mailing list