Skip to content

Commit 7a5103b

Browse files
Xianting Tianmstsirkin
authored andcommitted
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 f8bb510 ("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>
1 parent 4cf8b6d commit 7a5103b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/crypto/virtio/virtio_crypto_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto)
480480
kfree(vc_req->req_data);
481481
kfree(vc_req->sgs);
482482
}
483+
cond_resched();
483484
}
484485
}
485486

0 commit comments

Comments
 (0)