Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xianting Tian and committed by
Michael S. Tsirkin
7a5103b8 4cf8b6d0

+1
+1
drivers/crypto/virtio/virtio_crypto_core.c
··· 480 480 kfree(vc_req->req_data); 481 481 kfree(vc_req->sgs); 482 482 } 483 + cond_resched(); 483 484 } 484 485 } 485 486