]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: recalculate priorities when channels are starving
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Nov 2011 13:52:03 +0000 (15:52 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 3 Nov 2011 14:20:17 +0000 (12:20 -0200)
commitca34cb7e025a03f0e4b16a625de02130608a86b3
treef7b8e0d69fb0e8831977c339118389b38d97b2ea
parent70ecd472336df55b01f33f1301dbb0b9e1c3ca2d
Bluetooth: recalculate priorities when channels are starving

To avoid starvation the priority is recalculated so that the starving
channels are promoted to HCI_PRIO_MAX - 1 (6).

HCI_PRIO_MAX (7) is considered special, because it requires CAP_NET_ADMIN
capability which can be used to provide more guaranties, so it is not used
when promoting.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c