Files
bind9/lib/isc
Ondřej Surý e705f213ca Remove taskmgr->excl_lock, fix the locking for taskmgr->exiting
While doing code review, it was found that the taskmgr->exiting is set
under taskmgr->lock, but accessed under taskmgr->excl_lock in the
isc_task_beginexclusive().

Additionally, before the change that moved running the tasks to the
netmgr, the task_ready() subrouting of isc_task_detach() would lock
mgr->lock, requiring the mgr->excl to be protected mgr->excl_lock
to prevent deadlock in the code.  After !4918 has been merged, this is
no longer true, and we can remove taskmgr->excl_lock and use
taskmgr->lock in its stead.

Solve both issues by removing the taskmgr->excl_lock and exclusively use
taskmgr->lock to protect both taskmgr->excl and taskmgr->exiting which
now doesn't need to be atomic_bool, because it's always accessed from
within the locked section.
2022-01-05 16:44:57 +01:00
..
2021-12-09 12:25:21 +01:00
2021-06-09 14:35:14 +02:00
2021-09-17 07:09:50 +02:00
2021-12-09 14:02:36 +01:00
2021-06-09 14:35:14 +02:00
2021-07-13 09:12:04 +02:00
2020-12-08 18:36:23 +01:00
2021-10-12 13:11:13 -07:00
2021-08-24 09:07:15 +02:00
2022-01-04 23:07:12 -08:00