mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
sctp: remove macros sctp_bh_[un]lock_sock
Redefined bh_[un]lock_sock to sctp_bh[un]lock_sock for user space friendly code which we haven't use in years, so removing them. Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
048ed4b626
commit
5bc1d1b4a2
5 changed files with 21 additions and 25 deletions
|
@ -1511,7 +1511,7 @@ static void sctp_close(struct sock *sk, long timeout)
|
|||
* the net layers still may.
|
||||
*/
|
||||
local_bh_disable();
|
||||
sctp_bh_lock_sock(sk);
|
||||
bh_lock_sock(sk);
|
||||
|
||||
/* Hold the sock, since sk_common_release() will put sock_put()
|
||||
* and we have just a little more cleanup.
|
||||
|
@ -1519,7 +1519,7 @@ static void sctp_close(struct sock *sk, long timeout)
|
|||
sock_hold(sk);
|
||||
sk_common_release(sk);
|
||||
|
||||
sctp_bh_unlock_sock(sk);
|
||||
bh_unlock_sock(sk);
|
||||
local_bh_enable();
|
||||
|
||||
sock_put(sk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue