diff options
author | Xianting Tian <tianxianting.txt@alibaba-inc.com> | 2023-06-09 16:18:15 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-03 19:15:12 +0300 |
commit | 7a5103b81a9628b6b66fc710d9ccdd2f2d27a58c (patch) | |
tree | e4e3bad52a988401b68648d635f96b826e2ed746 /drivers/crypto/virtio | |
parent | 4cf8b6d051d955ff044ae61552ab0f7f91aad6b9 (diff) | |
download | linux-7a5103b81a9628b6b66fc710d9ccdd2f2d27a58c.tar.xz |
virtio-crypto: 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-2-xianting.tian@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/crypto/virtio')
-rw-r--r-- | drivers/crypto/virtio/virtio_crypto_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/virtio/virtio_crypto_core.c b/drivers/crypto/virtio/virtio_crypto_core.c index 1198bd306365..94849fa3bd74 100644 --- a/drivers/crypto/virtio/virtio_crypto_core.c +++ b/drivers/crypto/virtio/virtio_crypto_core.c @@ -480,6 +480,7 @@ static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) kfree(vc_req->req_data); kfree(vc_req->sgs); } + cond_resched(); } } |