aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hisilicon/sec/sec_drv.h
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-07-01 09:59:54 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-07-08 15:21:16 +0800
commit68740ab505431f268dc1ee26a54b871e75f0ddaa (patch)
tree4515dca994fe2affc6e70ec05d65575fb9969eaa /drivers/crypto/hisilicon/sec/sec_drv.h
parentcrypto: hisilicon/sec - don't sleep when in softirq (diff)
downloadlinux-dev-68740ab505431f268dc1ee26a54b871e75f0ddaa.tar.xz
linux-dev-68740ab505431f268dc1ee26a54b871e75f0ddaa.zip
crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq
When kunpeng916 encryption driver is used to deencrypt and decrypt packets during the softirq, it is not allowed to use mutex lock. Fixes: 915e4e8413da ("crypto: hisilicon - SEC security accelerator driver") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/hisilicon/sec/sec_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/sec/sec_drv.h b/drivers/crypto/hisilicon/sec/sec_drv.h
index 179a8250d691..e2a50bf2234b 100644
--- a/drivers/crypto/hisilicon/sec/sec_drv.h
+++ b/drivers/crypto/hisilicon/sec/sec_drv.h
@@ -347,7 +347,7 @@ struct sec_queue {
DECLARE_BITMAP(unprocessed, SEC_QUEUE_LEN);
DECLARE_KFIFO_PTR(softqueue, typeof(struct sec_request_el *));
bool havesoftqueue;
- struct mutex queuelock;
+ spinlock_t queuelock;
void *shadow[SEC_QUEUE_LEN];
};