Skip to content

Atomic counters and quota

Witold Krecicki requested to merge wpk-atomic-counters-quota into master

This changes a quota and counters from locked structures to atomics:

  • add atomic_store_relaxed and atomic_load_relaxed macros to isc/atomic.h

  • Make isc_quota use atomics instead of locks

  • Use getters for isc_quota parameters, make fields private

  • Fix a potential data race with recursion clients limits logging

  • Make isc_counter use atomics instead of locks

Since it's very internal I don't think it's CHANGES-entry-worthy.

Edited by Witold Krecicki

Merge request reports