OSDN Git Service

netfilter: nftables: comment indirect serialization of commit_mutex with rtnl_mutex
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 Dec 2020 17:57:02 +0000 (18:57 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 Dec 2020 20:53:48 +0000 (21:53 +0100)
commit42f1c27120906a54e73101a7d6a12f58813f6a9f
treed42c64bf7b90d5a04d75c39daffdea1991040208
parent917d80d376ffbaa9725fde9e3c0282f63643f278
netfilter: nftables: comment indirect serialization of commit_mutex with rtnl_mutex

Add an explicit comment in the code to describe the indirect
serialization of the holders of the commit_mutex with the rtnl_mutex.
Commit 90d2723c6d4c ("netfilter: nf_tables: do not hold reference on
netdevice from preparation phase") already describes this, but a comment
in this case is better for reference.

Reported-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c