mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +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
|
@ -218,7 +218,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v)
|
|||
return -ENOMEM;
|
||||
|
||||
head = &sctp_ep_hashtable[hash];
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
read_lock(&head->lock);
|
||||
sctp_for_each_hentry(epb, &head->chain) {
|
||||
ep = sctp_ep(epb);
|
||||
|
@ -235,7 +235,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v)
|
|||
seq_printf(seq, "\n");
|
||||
}
|
||||
read_unlock(&head->lock);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -326,7 +326,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
|
|||
return -ENOMEM;
|
||||
|
||||
head = &sctp_assoc_hashtable[hash];
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
read_lock(&head->lock);
|
||||
sctp_for_each_hentry(epb, &head->chain) {
|
||||
assoc = sctp_assoc(epb);
|
||||
|
@ -362,7 +362,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
|
|||
seq_printf(seq, "\n");
|
||||
}
|
||||
read_unlock(&head->lock);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -446,7 +446,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
|
|||
return -ENOMEM;
|
||||
|
||||
head = &sctp_assoc_hashtable[hash];
|
||||
sctp_local_bh_disable();
|
||||
local_bh_disable();
|
||||
read_lock(&head->lock);
|
||||
rcu_read_lock();
|
||||
sctp_for_each_hentry(epb, &head->chain) {
|
||||
|
@ -505,7 +505,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
|
|||
|
||||
rcu_read_unlock();
|
||||
read_unlock(&head->lock);
|
||||
sctp_local_bh_enable();
|
||||
local_bh_enable();
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue