Re: [PATCH 1/3] padata: separate serial and parallel cpumasks

From: Steffen Klassert
Date: Tue Jul 06 2010 - 03:44:58 EST


On Tue, Jul 06, 2010 at 11:40:11AM +0400, Dan Kruchinin wrote:
> >> >
> >>
> >> I think we can use RCU anyway. For instance we could use a structure
> >>
> >> struct pcrypt_cpumask {
> >>       cpumask_var_t           pmask;
> >>       cpumask_var_t           smask;
> >> };
> >>
> >> and add a pointer to a structure of that type to the instance context.
> >> Then we could use this pointer for RCU and replace the whole structure
> >> if a cpumask changes.
>
> But is pcrypt interested pmask? If it isn't, pmask field will be unused.
>

It's probaply not, in this case the struct could look like

struct pcrypt_cpumask {
cpumask_var_t           smask;
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/