mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
sctp: remove macros sctp_local_bh_{disable|enable}
Redefined local_bh_{disable|enable} to sctp_local_bh_{disable|enable} 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
940287ee10
commit
79b91130a2
5 changed files with 26 additions and 28 deletions
|
@ -726,9 +726,9 @@ static void __sctp_hash_endpoint(struct sctp_endpoint *ep)
|
|||
/* Add an endpoint to the hash. Local BH-safe. */
|
||||
void sctp_hash_endpoint(struct sctp_endpoint *ep)
|
||||
{
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
__sctp_hash_endpoint(ep);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
}
|
||||
|
||||
/* Remove endpoint from the hash table. */
|
||||
|
@ -752,9 +752,9 @@ static void __sctp_unhash_endpoint(struct sctp_endpoint *ep)
|
|||
/* Remove endpoint from the hash. Local BH-safe. */
|
||||
void sctp_unhash_endpoint(struct sctp_endpoint *ep)
|
||||
{
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
__sctp_unhash_endpoint(ep);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
}
|
||||
|
||||
/* Look up an endpoint. */
|
||||
|
@ -809,9 +809,9 @@ void sctp_hash_established(struct sctp_association *asoc)
|
|||
if (asoc->temp)
|
||||
return;
|
||||
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
__sctp_hash_established(asoc);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
}
|
||||
|
||||
/* Remove association from the hash table. */
|
||||
|
@ -839,9 +839,9 @@ void sctp_unhash_established(struct sctp_association *asoc)
|
|||
if (asoc->temp)
|
||||
return;
|
||||
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
__sctp_unhash_established(asoc);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
}
|
||||
|
||||
/* Look up an association. */
|
||||
|
@ -891,9 +891,9 @@ struct sctp_association *sctp_lookup_association(struct net *net,
|
|||
{
|
||||
struct sctp_association *asoc;
|
||||
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
asoc = __sctp_lookup_association(net, laddr, paddr, transportp);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
|
||||
return asoc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue