mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
netfilter: ipset: make sure gc is properly stopped
Sashiko noticed that when destroying a set,
cancel_delayed_work_sync() was called while gc
calls queue_delayed_work() unconditionally which
can lead not to properly shutting down the gc.
Fixes: f66ee0410b ("netfilter: ipset: Fix "INFO: rcu detected stall in hash_xxx" reports")
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
3ca9982a88
commit
4a597a87e2
|
|
@ -606,7 +606,7 @@ mtype_cancel_gc(struct ip_set *set)
|
|||
struct htype *h = set->data;
|
||||
|
||||
if (SET_WITH_TIMEOUT(set))
|
||||
cancel_delayed_work_sync(&h->gc.dwork);
|
||||
disable_delayed_work_sync(&h->gc.dwork);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user