aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorXianting Tian <xianting.tian@linux.alibaba.com>2023-06-09 21:18:17 +0800
committerMichael S. Tsirkin <mst@redhat.com>2023-07-03 12:15:12 -0400
commit3845308fc8b0bc6a9345df4f69ef56f9adc52218 (patch)
tree4c6f0e1e6ef29a4d7929d0871478a4e03cf4ba0c /drivers/bluetooth
parent56b5e65efe0001fb5f95e412ee4167363debfc46 (diff)
downloadlinux-3845308fc8b0bc6a9345df4f69ef56f9adc52218.tar.gz
virtio_bt: call scheduler when we free unused buffs
For virtio-net we were getting CPU stall warnings, and fixed it by calling the scheduler: see f8bb51043945 ("virtio_net: suppress cpu stall when free_unused_bufs"). This driver is similar so theoretically the same logic applies. Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com> Message-Id: <20230609131817.712867-4-xianting.tian@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/virtio_bt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/virtio_bt.c b/drivers/bluetooth/virtio_bt.c
index c570c45d14805..2ac70b560c46d 100644
--- a/drivers/bluetooth/virtio_bt.c
+++ b/drivers/bluetooth/virtio_bt.c
@@ -79,6 +79,7 @@ static int virtbt_close_vdev(struct virtio_bluetooth *vbt)
while ((skb = virtqueue_detach_unused_buf(vq)))
kfree_skb(skb);
+ cond_resched();
}
return 0;