Skip to content

padata: cpumasks

Dan Kruchinin linux-crypto lkml 1 version In review

Get series with b4
b4 am 20100714142951.22817d0c@leibniz

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3The aim of this patch is to make two separate cpumaskscrypto/pcrypt.c include/linux/padata.h kernel/padata.c+564 -2140 replies
2/3Added sysfs primitives to padata subsysteminclude/linux/padata.h kernel/padata.c+150 -100 replies
3/3Added sysfs interface to pcrypt.crypto/pcrypt.c+32 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] padata: cpumasks

This is my third attempt to send padata cpumasks patchset.
The patchset includes fixes of all unclear things Steffen noted in previous two patchsets. Changes:

1) Make two cpumasks in padata instead of one. The first cpumask is used by parallel workers and another is used by the workers doing serialization. Two distinguish cpumasks perform to build configuration where CPUs used by parallel and serial workers aren't intersect. It significantly improves performance.
Each padata instance now includes notifier chain which can be used by users interested in instance's cpumask(serial or parallel) change. If one of cpumask is changed an event is generated.

2) Add sysfs primitives to padata. Each padata instance contains kobject which can be embedded to any proper sysfs hierarchy. Padata kobject can be used to change or show serial or parallel cpumask.

3) Add sysfs representation to pcrypt. Pcrypt now creates /sys/kernel/pcrypt/[pencrypt|pdecrypt] during module loading phase. pencrypt and pdecrypt directories are represented by kobjects of padata instances that belongs to pencrypt and pdecrypt respectively. Using this sysfs interface user can change and read serial and parallel cpumasks of both instances.

Signature · 2 lines
W.B.R.
Dan Kruchinin