]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
While the thread is sleeping in taskqueue_drain_all() it is
authorjulian <julian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Oct 2016 04:57:33 +0000 (04:57 +0000)
committerjulian <julian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Oct 2016 04:57:33 +0000 (04:57 +0000)
commitbb63374e2ffcb269b3ca565e4bd18ee2edb70d9f
treee36e4229fc95b4975e9d7e94c65f27264cb1fd5f
parentd1c8ca47ae0088ee7e9fb24a5abc2d6bb975c7ef
While the thread is sleeping in taskqueue_drain_all() it is
posible that the queue entry it is looking at is removed
from the queue, but we make no effort to account
for this. when we wake up we need to check it's still there.

PR: 209580
Sponsored by: Panzura inc
Differential Revision: D8160

git-svn-id: svn://svn.freebsd.org/base/stable/10@306935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_taskqueue.c