]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dql: annotate data-races around dql->last_obj_cnt
authorEric Dumazet <edumazet@google.com>
Tue, 29 Oct 2024 19:14:25 +0000 (19:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 1 Nov 2024 02:19:36 +0000 (19:19 -0700)
commita911bad094b010e276f072fe9a599b66e59ed5fe
treef051548cb035f254931272820d95f062751c854e
parent4138e9ec00936c9fe7d0fe961e32f381b1e36926
dql: annotate data-races around dql->last_obj_cnt

dql->last_obj_cnt is read/written from different contexts,
without any lock synchronization.

Use READ_ONCE()/WRITE_ONCE() to avoid load/store tearing.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20241029191425.2519085-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/dynamic_queue_limits.h
lib/dynamic_queue_limits.c