padata: Check for valid padata instance on start
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 7 Jul 2010 13:30:10 +0000 (15:30 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Jul 2010 12:29:28 +0000 (20:29 +0800)
commit4c879170296174bde05cd1c643dac16594edee77
tree467afaa9ad1235caa110789621edb7726fdcb4cd
parent7e3de7b1be6ce0643f60aed697070e2286db32cd
padata: Check for valid padata instance on start

This patch introduces the PADATA_INVALID flag which is
checked on padata start. This will be used to mark a padata
instance as invalid, if the padata cpumask does not intersect
with the active cpumask. we change padata_start to return an
error if the PADATA_INVALID is set. Also we adapt the only
padata user, pcrypt to this change.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/pcrypt.c
include/linux/padata.h
kernel/padata.c