[PATCH 1/2] staging/lustre/ptlrpc: Do not use deprecated cpus_* functions

2015-03-01 Thread green
From: Oleg Drokin As per Rusty Russel, cpus_* functions are deprecated. When mixing cpumask_copy with cpus_weight, they operate on different sized masks if CPUMASK_OFFSTACK is enabled, causing an immediate assertion failure. Copying of cpumasks by assignment is also not allowed now.

[PATCH 1/2] staging/lustre/ptlrpc: Do not use deprecated cpus_* functions

2015-03-01 Thread green
From: Oleg Drokin gr...@linuxhacker.ru As per Rusty Russel, cpus_* functions are deprecated. When mixing cpumask_copy with cpus_weight, they operate on different sized masks if CPUMASK_OFFSTACK is enabled, causing an immediate assertion failure. Copying of cpumasks by assignment is also not