Skip to content

padata/pcrypt: cleanups

Steffen Klassert linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7padata: Rename padata_alloc functionscrypto/pcrypt.c include/linux/padata.h kernel/padata.c+18 -170 replies
2/7padata: Rearrange set_cpumask functionsinclude/linux/padata.h kernel/padata.c+70 -530 replies
3/7padata: Pass the padata cpumasks to the cpumask_change_notifier chaininclude/linux/padata.h kernel/padata.c+23 -200 replies
4/7crypto: pcrypt - Rename pcrypt_instancecrypto/pcrypt.c+14 -160 replies
5/7crypto: pcrypt - Update pcrypt cpumask according to the padata cpumask notifiercrypto/pcrypt.c+11 -20 replies
6/7padata: Remove padata_get_cpumaskinclude/linux/padata.h kernel/padata.c+0 -370 replies
7/7padata: update API documentationDocumentation/padata.txt+64 -121 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] padata/pcrypt: cleanups

This patchset contains the following changes:

1. padata - Rename padata_alloc functions to not export underlined functions.

2. padata - Rearrange set_cpumask functions to have proper locking for all these functions and to avoid to export underlined functions.

3. padata - Pass the padata cpumasks to the cpumask_change_notifier chain, so users can access them without the need of a padata_get_cpumask function.

4. pcrypt - Rename the stuct pcrypt_instance. An instance refers usually to a crypto instance in the crypto-layer, the struct pcrypt_instance is not related to a crypto instance, so we rename it.

5. pcrypt - Update pcrypt cpumask acording to the padata cpumask notifier. The padata cpumask change notifier passes a padata_cpumask to the notifier chain, so we use this to update the pcrypt cpumask.

6. padata - Remove padata_get_cpumask. This function is a bit error prone because the cpumask can change at any time, so we can't be sure to get the right cpumask from that function.

7. padata - Update the API documentation.

Steffen