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)
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>

No differences found