Re: [PATCH] virtio-crypto: handle config changed by work queue

From: Herbert Xu
Date: Fri Oct 20 2023 - 01:50:37 EST


On Sat, Oct 07, 2023 at 02:43:09PM +0800, zhenwei pi wrote:
> MST pointed out: config change callback is also handled incorrectly
> in this driver, it takes a mutex from interrupt context.
>
> Handle config changed by work queue instead.
>
> Cc: Gonglei (Arei) <arei.gonglei@xxxxxxxxxx>
> Cc: Halil Pasic <pasic@xxxxxxxxxxxxx>
> Cc: Michael S. Tsirkin <mst@xxxxxxxxxx>
> Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx>
> ---
> drivers/crypto/virtio/virtio_crypto_common.h | 3 +++
> drivers/crypto/virtio/virtio_crypto_core.c | 14 +++++++++++++-
> 2 files changed, 16 insertions(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt