Fix invalid cache-line padding for qpcache buckets

The isc_queue_t was missing in the calculation of the required
padding size inside the qpcache bucket structure.
This commit is contained in:
Ondřej Surý
2025-03-21 09:29:17 +01:00
parent 49ecb158d4
commit 996c36c147

View File

@@ -238,8 +238,8 @@ typedef struct qpcache_bucket {
/* Padding to prevent false sharing between locks. */
uint8_t __padding[ISC_OS_CACHELINE_SIZE -
(sizeof(dns_slabheaderlist_t) + sizeof(isc_heap_t *) +
sizeof(isc_rwlock_t)) %
(sizeof(isc_queue_t) + sizeof(isc_rwlock_t) +
sizeof(dns_slabheaderlist_t) + sizeof(isc_heap_t *)) %
ISC_OS_CACHELINE_SIZE];
} qpcache_bucket_t;