From 14f1aafe263cef021807fa3a80daaf36c99f71ca Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 26 Apr 2011 07:30:52 +0000 Subject: - Catch up to falloc() changes. - PHOLD() before using a task structure on the stack. - Fix a LOR between the sleepq lock and thread lock in _intr_drain(). --- sys/ofed/include/linux/workqueue.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/ofed/include/linux/workqueue.h') diff --git a/sys/ofed/include/linux/workqueue.h b/sys/ofed/include/linux/workqueue.h index 6b48f9c..c59b4ae 100644 --- a/sys/ofed/include/linux/workqueue.h +++ b/sys/ofed/include/linux/workqueue.h @@ -160,9 +160,11 @@ flush_taskqueue(struct taskqueue *tq) { struct task flushtask; + PHOLD(curproc); TASK_INIT(&flushtask, 0, _flush_fn, NULL); taskqueue_enqueue(tq, &flushtask); taskqueue_drain(tq, &flushtask); + PRELE(curproc); } static inline int -- cgit v1.1