提交 d11ef9cc 编写于 作者: J Jakub Kicinski

tls: strp: rename and multithread the workqueue

Paolo points out that there seems to be no strong reason strparser
users a single threaded workqueue. Perhaps there were some performance
or pinning considerations? Since we don't know (and it's the slow path)
let's default to the most natural, multi-threaded choice.

Also rename the workqueue to "tls-".
Suggested-by: NPaolo Abeni <pabeni@redhat.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 70f03fc2
...@@ -480,7 +480,7 @@ void tls_strp_done(struct tls_strparser *strp) ...@@ -480,7 +480,7 @@ void tls_strp_done(struct tls_strparser *strp)
int __init tls_strp_dev_init(void) int __init tls_strp_dev_init(void)
{ {
tls_strp_wq = create_singlethread_workqueue("kstrp"); tls_strp_wq = create_workqueue("tls-strp");
if (unlikely(!tls_strp_wq)) if (unlikely(!tls_strp_wq))
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册