net: allow sleeping when modifying store_rps_map
authorSasha Levin <sasha.levin@oracle.com>
Thu, 13 Aug 2015 18:03:16 +0000 (14:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2015 04:40:57 +0000 (21:40 -0700)
Commit 10e4ea751 ("net: Fix race condition in store_rps_map") has moved the
manipulation of the rps_needed jump label under a spinlock. Since changing
the state of a jump label may sleep this is incorrect and causes warnings
during runtime.

Make rps_map_lock a mutex to allow sleeping under it.

Fixes: 10e4ea751 ("net: Fix race condition in store_rps_map")
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c

Simple merge