mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
[AX.25]: Optimize AX.25 socket list lock
Right now all uses of the ax25_list_lock lock are _bh locks but knowing some code is only ever getting invoked from _bh context we can better. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
da952315c9
commit
c19c4b9c9a
3 changed files with 13 additions and 13 deletions
|
@ -85,7 +85,7 @@ static void ax25_ds_timeout(unsigned long arg)
|
|||
return;
|
||||
}
|
||||
|
||||
spin_lock_bh(&ax25_list_lock);
|
||||
spin_lock(&ax25_list_lock);
|
||||
ax25_for_each(ax25, node, &ax25_list) {
|
||||
if (ax25->ax25_dev != ax25_dev || !(ax25->condition & AX25_COND_DAMA_MODE))
|
||||
continue;
|
||||
|
@ -93,7 +93,7 @@ static void ax25_ds_timeout(unsigned long arg)
|
|||
ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND);
|
||||
ax25_disconnect(ax25, ETIMEDOUT);
|
||||
}
|
||||
spin_unlock_bh(&ax25_list_lock);
|
||||
spin_unlock(&ax25_list_lock);
|
||||
|
||||
ax25_dev_dama_off(ax25_dev);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue