mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
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>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
ca50ec377c
commit
fa2e6947aa
@@ -35,6 +35,9 @@ struct virtio_crypto {
|
||||
struct virtqueue *ctrl_vq;
|
||||
struct data_queue *data_vq;
|
||||
|
||||
/* Work struct for config space updates */
|
||||
struct work_struct config_work;
|
||||
|
||||
/* To protect the vq operations for the controlq */
|
||||
spinlock_t ctrl_lock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user