summaryrefslogtreecommitdiffstats
path: root/sys/sys/_task.h
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2010-10-13 22:59:04 +0000
committermdf <mdf@FreeBSD.org>2010-10-13 22:59:04 +0000
commit256615c9b37c8059eef0e130fbf813607a5396a8 (patch)
tree24055c8287880bae8bb9dd5d75857ecb3e5c766e /sys/sys/_task.h
parent893b9eec864d62c7eba5010f46d140cf9db483e3 (diff)
downloadFreeBSD-src-256615c9b37c8059eef0e130fbf813607a5396a8.zip
FreeBSD-src-256615c9b37c8059eef0e130fbf813607a5396a8.tar.gz
Use a safer mechanism for determining if a task is currently running,
that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Suggested by: jhb MFC after: 1 month
Diffstat (limited to 'sys/sys/_task.h')
-rw-r--r--sys/sys/_task.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/sys/_task.h b/sys/sys/_task.h
index c3f9432..11fd1bc 100644
--- a/sys/sys/_task.h
+++ b/sys/sys/_task.h
@@ -44,7 +44,6 @@
typedef void task_fn_t(void *context, int pending);
struct task {
- struct task **ta_running; /* (q) queue's running task pointer */
STAILQ_ENTRY(task) ta_link; /* (q) link for queue */
u_short ta_pending; /* (q) count times queued */
u_short ta_priority; /* (c) Priority */
OpenPOWER on IntegriCloud