Commit 56a073e5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't schedule req's using sess' task structure, that doesn't

scale to parallism.
parent d92975ce
......@@ -556,6 +556,7 @@ struct req {
struct sess *sp;
struct worker *wrk;
struct pool_task task;
enum req_step req_step;
VTAILQ_ENTRY(req) w_list;
......
......@@ -161,10 +161,10 @@ SES_ScheduleReq(struct req *req)
CHECK_OBJ_NOTNULL(pp, SESSPOOL_MAGIC);
AN(pp->pool);
sp->task.func = ses_req_pool_task;
sp->task.priv = req;
req->task.func = ses_req_pool_task;
req->task.priv = req;
return (Pool_Task(pp->pool, &sp->task, POOL_QUEUE_FRONT));
return (Pool_Task(pp->pool, &req->task, POOL_QUEUE_FRONT));
}
/*--------------------------------------------------------------------
......
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