diff options
| author | Chenghai Huang <huangchenghai2@huawei.com> | 2025-12-18 16:44:46 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-01-16 09:02:06 +0300 |
| commit | 8cd9b608ee8dea78cac3f373bd5e3b3de2755d46 (patch) | |
| tree | 6787330640ad5cfd08a1cc55449370307d963dbf /include/linux | |
| parent | 21452eaa06edb5f6038720e643aed0bbfffad9c3 (diff) | |
| download | linux-8cd9b608ee8dea78cac3f373bd5e3b3de2755d46.tar.xz | |
crypto: hisilicon/qm - centralize the sending locks of each module into qm
When a single queue used by multiple tfms, the protection of shared
resources by individual module driver programs is no longer
sufficient. The hisi_qp_send needs to be ensured by the lock in qp.
Fixes: 5fdb4b345cfb ("crypto: hisilicon - add a lock for the qp send operation")
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hisi_acc_qm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h index dd4323633d81..ef4d3a79bcb7 100644 --- a/include/linux/hisi_acc_qm.h +++ b/include/linux/hisi_acc_qm.h @@ -476,6 +476,7 @@ struct hisi_qp { u16 pasid; struct uacce_queue *uacce_q; + spinlock_t qp_lock; struct instance_backlog backlog; const void **msg; }; |
