adjust to changed pool_task fields

Ref varnish-cache a67a9d5606210245dd0c51966698dcd07206c91e
parent 8752f260
...@@ -133,8 +133,8 @@ vped_task(struct worker *wrk, void *priv) ...@@ -133,8 +133,8 @@ vped_task(struct worker *wrk, void *priv)
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC); CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
AZ(wrk->task.func); AZ(wrk->task->func);
AZ(wrk->task.priv); AZ(wrk->task->priv);
/* /*
* if we got an aws reservation, we have been run via Pool_Task_Arg() or * if we got an aws reservation, we have been run via Pool_Task_Arg() or
...@@ -440,9 +440,9 @@ vped_include(struct req *preq, const char *src, const char *host, ...@@ -440,9 +440,9 @@ vped_include(struct req *preq, const char *src, const char *host,
} }
if (pesi->flags & PF_CFG_THREAD) { if (pesi->flags & PF_CFG_THREAD) {
req->task.func = vped_task; req->task->func = vped_task;
req->task.priv = req; req->task->priv = req;
AZ(Pool_Task(wrk->pool, &req->task, TASK_QUEUE_RUSH)); AZ(Pool_Task(wrk->pool, req->task, TASK_QUEUE_RUSH));
return (1); return (1);
} }
...@@ -458,8 +458,8 @@ vped_include(struct req *preq, const char *src, const char *host, ...@@ -458,8 +458,8 @@ vped_include(struct req *preq, const char *src, const char *host,
* we can not use the self-rescheduling facility of Pool_Task_Arg * we can not use the self-rescheduling facility of Pool_Task_Arg
* because we cannot unschedule ourself * because we cannot unschedule ourself
*/ */
wrk->task.func = NULL; wrk->task->func = NULL;
wrk->task.priv = NULL; wrk->task->priv = NULL;
WS_Release(wrk->aws, 0); WS_Release(wrk->aws, 0);
vped_task(wrk, req); vped_task(wrk, req);
return (0); return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment