diff options
author | Simon Horman <horms@verge.net.au> | 2008-09-16 20:10:42 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-16 20:10:42 -0400 |
commit | 563e94f072714657a82a59a3bf81a719a6a25591 (patch) | |
tree | 07265f5d250784ff0070908a73c35ce5a634ff6c /net | |
parent | dff630ddad3884b99fae3ad92f5eccbf26618679 (diff) |
ipvs: add __aquire/__release annotations to ip_vs_info_seq_start/ip_vs_info_seq_stop
This teaches sparse that the following are not problems:
make C=1
CHECK net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_ctl.c:1793:14: warning: context imbalance in 'ip_vs_info_seq_start' - wrong count at exit
net/ipv4/ipvs/ip_vs_ctl.c:1842:13: warning: context imbalance in 'ip_vs_info_seq_stop' - unexpected unlock
Acked-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_ctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 60ca24b9ec00..771551d8fba9 100644 --- a/net/ipv4/ipvs/ip_vs_ctl.c +++ b/net/ipv4/ipvs/ip_vs_ctl.c | |||
@@ -1787,6 +1787,7 @@ static struct ip_vs_service *ip_vs_info_array(struct seq_file *seq, loff_t pos) | |||
1787 | } | 1787 | } |
1788 | 1788 | ||
1789 | static void *ip_vs_info_seq_start(struct seq_file *seq, loff_t *pos) | 1789 | static void *ip_vs_info_seq_start(struct seq_file *seq, loff_t *pos) |
1790 | __acquires(__ip_vs_svc_lock) | ||
1790 | { | 1791 | { |
1791 | 1792 | ||
1792 | read_lock_bh(&__ip_vs_svc_lock); | 1793 | read_lock_bh(&__ip_vs_svc_lock); |
@@ -1840,6 +1841,7 @@ static void *ip_vs_info_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
1840 | } | 1841 | } |
1841 | 1842 | ||
1842 | static void ip_vs_info_seq_stop(struct seq_file *seq, void *v) | 1843 | static void ip_vs_info_seq_stop(struct seq_file *seq, void *v) |
1844 | __releases(__ip_vs_svc_lock) | ||
1843 | { | 1845 | { |
1844 | read_unlock_bh(&__ip_vs_svc_lock); | 1846 | read_unlock_bh(&__ip_vs_svc_lock); |
1845 | } | 1847 | } |