Files
bind9/lib/isc
Ondřej Surý 5be356760d 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.

(cherry picked from commit e705f213ca)
2022-01-06 17:56:45 +01:00
..
2021-05-26 17:19:06 +02:00
2021-08-18 14:59:29 +10:00
2021-05-14 12:52:48 +02:00
2021-12-15 13:29:19 +01:00
2021-05-14 12:52:48 +02:00
2020-12-09 10:46:16 +01:00
2021-08-24 09:51:45 +02:00
2021-05-14 12:52:48 +02:00
2021-05-14 12:52:48 +02:00
2021-05-14 12:52:48 +02:00