Skip to content

Commit

Permalink
tls: strp: rename and multithread the workqueue
Browse files Browse the repository at this point in the history
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: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Jul 29, 2022
1 parent 70f03fc commit d11ef9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tls/tls_strp.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ void tls_strp_done(struct tls_strparser *strp)

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))
return -ENOMEM;

Expand Down

0 comments on commit d11ef9c

Please sign in to comment.