crypto: virtio - handle config changed by work queue
authorzhenwei pi <pizhenwei@bytedance.com>
Sat, 7 Oct 2023 06:43:09 +0000 (14:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Oct 2023 05:35:55 +0000 (13:35 +0800)
commit9da274660289b516ee6b6ec5d42402138f336daf
tree16ed922cdd55d2a8e6a4797e96b64eaa469b4477
parent5b90073defd1a52aa8120403d79f6e0fc10c87ee
crypto: virtio - handle config changed by work queue

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@huawei.com>
Cc: Halil Pasic <pasic@linux.ibm.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/virtio/virtio_crypto_common.h
drivers/crypto/virtio/virtio_crypto_core.c