Date: Fri, 30 Apr 2010 16:29:05 +0000 (UTC) From: Zachary Loafman <zml@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern subr_taskqueue.c src/sys/sys _task.h taskqueue.h Message-ID: <201004301630.o3UGU5l3026439@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
zml 2010-04-30 16:29:05 UTC FreeBSD src repository Modified files: sys/kern subr_taskqueue.c sys/sys _task.h taskqueue.h Log: SVN rev 207439 on 2010-04-30 16:29:05Z by zml Handle taskqueue_drain(9) correctly on a threaded taskqueue: taskqueue_drain(9) will not correctly detect whether a task is currently running. The check is against a field in the taskqueue struct, but for a threaded queue with more than one thread, multiple threads can simultaneously be running a task, thus stomping over the tq_running field. Submitted by: Matthew Fleming <matthew.fleming@isilon.com> Reviewed by: jhb Approved by: dfr (mentor) Revision Changes Path 1.53 +6 -5 src/sys/kern/subr_taskqueue.c 1.7 +11 -5 src/sys/sys/_task.h 1.23 +1 -0 src/sys/sys/taskqueue.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004301630.o3UGU5l3026439>