diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-02-05 01:50:26 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-02-05 04:07:35 +0100 |
commit | c14b78e7decd0d1d5add6a4604feb8609fe920a9 (patch) | |
tree | 820b4a0a2f3702581452e05d53d44097cb240d81 /include/linux/netfilter | |
parent | 5474f57f7d686ac918355419cb71496f835aaf5d (diff) | |
download | linux-stable-c14b78e7decd0d1d5add6a4604feb8609fe920a9.tar.gz linux-stable-c14b78e7decd0d1d5add6a4604feb8609fe920a9.tar.bz2 linux-stable-c14b78e7decd0d1d5add6a4604feb8609fe920a9.zip |
netfilter: nfnetlink: add mutex per subsystem
This patch replaces the global lock to one lock per subsystem.
The per-subsystem lock avoids that processes operating
with different subsystems are synchronized.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 4966ddec039b..ecbb8e495912 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -34,8 +34,8 @@ extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigne extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags); -extern void nfnl_lock(void); -extern void nfnl_unlock(void); +extern void nfnl_lock(__u8 subsys_id); +extern void nfnl_unlock(__u8 subsys_id); #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys)) |