virtio-crypto: handle config changed by work queue
authorzhenwei pi <pizhenwei@bytedance.com>
Sat, 7 Oct 2023 06:43:09 +0000 (14:43 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 15:30:06 +0000 (11:30 -0400)
commitfa2e6947aa8844f25f5bad0d8cd1a541d9bc83eb
treed92bb7764dbdf89efcda19d4d7c356308fab11f4
parentca50ec377c2e94b0a9f8735de2856cd0f13beab4
virtio-crypto: 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: stable@vger.kernel.org
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>
Message-Id: <20231007064309.844889-1-pizhenwei@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/crypto/virtio/virtio_crypto_common.h
drivers/crypto/virtio/virtio_crypto_core.c