aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-01-21 21:41:46 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-21 21:41:46 -0500
commit656edac6784181fccdab97cc8a59127ea6b08910 (patch)
tree4920c464aba555430904d4b93936a72a391016c7 /include
parentd08f161a10006491d5835702bff2a12c91fb0cdd (diff)
parent5bc1d1b4a261a865cbde65b1561748df5b9c724b (diff)
Merge branch 'sctp'
Wang Weidong says: ==================== sctp: remove some macro locking wrappers In sctp.h we can find some macro locking wrappers. As Neil point out that: "Its because in the origional implementation of the sctp protocol, there was a user space test harness which built the kernel module for userspace execution to cary our some unit testing on the code. It did so by redefining some of those locking macros to user space friendly code. IIRC we haven't use those unit tests in years, and so should be removing them, not adding them to other locations." So I remove them. ==================== Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/sctp/sctp.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 610a8c8738fa..a3353f45ef94 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -170,25 +170,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
170 * Section: Macros, externs, and inlines 170 * Section: Macros, externs, and inlines
171 */ 171 */
172 172
173/* spin lock wrappers. */
174#define sctp_spin_lock_irqsave(lock, flags) spin_lock_irqsave(lock, flags)
175#define sctp_spin_unlock_irqrestore(lock, flags) \
176 spin_unlock_irqrestore(lock, flags)
177#define sctp_local_bh_disable() local_bh_disable()
178#define sctp_local_bh_enable() local_bh_enable()
179#define sctp_spin_lock(lock) spin_lock(lock)
180#define sctp_spin_unlock(lock) spin_unlock(lock)
181#define sctp_write_lock(lock) write_lock(lock)
182#define sctp_write_unlock(lock) write_unlock(lock)
183#define sctp_read_lock(lock) read_lock(lock)
184#define sctp_read_unlock(lock) read_unlock(lock)
185
186/* sock lock wrappers. */
187#define sctp_lock_sock(sk) lock_sock(sk)
188#define sctp_release_sock(sk) release_sock(sk)
189#define sctp_bh_lock_sock(sk) bh_lock_sock(sk)
190#define sctp_bh_unlock_sock(sk) bh_unlock_sock(sk)
191
192/* SCTP SNMP MIB stats handlers */ 173/* SCTP SNMP MIB stats handlers */
193#define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) 174#define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field)
194#define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field) 175#define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field)
@@ -353,13 +334,13 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list,
353{ 334{
354 unsigned long flags; 335 unsigned long flags;
355 336
356 sctp_spin_lock_irqsave(&head->lock, flags); 337 spin_lock_irqsave(&head->lock, flags);
357 sctp_spin_lock(&list->lock); 338 spin_lock(&list->lock);
358 339
359 skb_queue_splice_tail_init(list, head); 340 skb_queue_splice_tail_init(list, head);
360 341
361 sctp_spin_unlock(&list->lock); 342 spin_unlock(&list->lock);
362 sctp_spin_unlock_irqrestore(&head->lock, flags); 343 spin_unlock_irqrestore(&head->lock, flags);
363} 344}
364 345
365/** 346/**