summaryrefslogtreecommitdiff
path: root/include/crypto/crypto_wq.h
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-02-19 09:33:40 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-19 09:33:40 +0300
commit25c38d3fb92fc23af7730a1601bc20af8216ae44 (patch)
treec191112a61457ecbf69d1a477705c87678a44231 /include/crypto/crypto_wq.h
parent6fe4a28d8855e072036f36ee22f0a8f43f44918f (diff)
downloadlinux-25c38d3fb92fc23af7730a1601bc20af8216ae44.tar.xz
crypto: api - Use dedicated workqueue for crypto subsystem
Use dedicated workqueue for crypto subsystem A dedicated workqueue named kcrypto_wq is created to be used by crypto subsystem. The system shared keventd_wq is not suitable for encryption/decryption, because of potential starvation problem. Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/crypto_wq.h')
-rw-r--r--include/crypto/crypto_wq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/crypto/crypto_wq.h b/include/crypto/crypto_wq.h
new file mode 100644
index 000000000000..a7d252daf91b
--- /dev/null
+++ b/include/crypto/crypto_wq.h
@@ -0,0 +1,7 @@
+#ifndef CRYPTO_WQ_H
+#define CRYPTO_WQ_H
+
+#include <linux/workqueue.h>
+
+extern struct workqueue_struct *kcrypto_wq;
+#endif