diff options
author | Xianting Tian <xianting.tian@linux.alibaba.com> | 2023-06-09 21:18:17 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-03 12:15:12 -0400 |
commit | 3845308fc8b0bc6a9345df4f69ef56f9adc52218 (patch) | |
tree | 4c6f0e1e6ef29a4d7929d0871478a4e03cf4ba0c | |
parent | 56b5e65efe0001fb5f95e412ee4167363debfc46 (diff) | |
download | linux-3845308fc8b0bc6a9345df4f69ef56f9adc52218.tar.gz linux-3845308fc8b0bc6a9345df4f69ef56f9adc52218.tar.bz2 linux-3845308fc8b0bc6a9345df4f69ef56f9adc52218.zip |
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>
-rw-r--r-- | drivers/bluetooth/virtio_bt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/virtio_bt.c b/drivers/bluetooth/virtio_bt.c index c570c45d1480..2ac70b560c46 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; |