staging/lustre/ptlrpc: Do not use deprecated cpus_* functions
authorOleg Drokin <green@linuxhacker.ru>
Mon, 2 Mar 2015 06:01:46 +0000 (01:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:03:54 +0000 (16:03 -0800)
commit6301647b1873250cb8aac18e02a4ea062e72278e
tree466ff234c04d11cc93bc1495192591e8f6a90274
parent6ac986d098ee81b75973a0c2f46a9a4edef2a8c6
staging/lustre/ptlrpc: Do not use deprecated cpus_* functions

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.

Additionally, in ptlrpc/service.c avoid the cpumask copies,
since we only use it to check how many siblings are there for
core #0 and nothing else.

Reported-by: Tyson Whitehead <twhitehead@gmail.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c
drivers/staging/lustre/lustre/ptlrpc/service.c