]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revert r207439 and solve the problem differently. The task handler
authorZachary Loafman <zml@FreeBSD.org>
Fri, 28 May 2010 18:15:28 +0000 (18:15 +0000)
committerZachary Loafman <zml@FreeBSD.org>
Fri, 28 May 2010 18:15:28 +0000 (18:15 +0000)
commit6e86cdb85ccaf1a76bba946d0b5883f058c5d9a1
treece37781afaa60be1da1b396cd15e2580d5d323b7
parentdbd9a3aab383211156a1a85bddc60395f9c2d1cd
Revert r207439 and solve the problem differently. The task handler
ta_func may free the task structure, so no references to its members
are valid after the handler has been called. Using a per-queue member
and having waits longer than strictly necessary was suggested by jhb.

Submitted by:       Matthew Fleming <matthew.fleming@isilon.com>
Reviewed by:        zml, jhb
sys/kern/subr_taskqueue.c
sys/sys/_task.h
sys/sys/taskqueue.h