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)
commitda65ad1fe399d77234a4caa50008c6b87f1fe401
treed000a9bf25ed974f828c7314e0eb2fd51beca21b
parent968d7cb82aad3c6bfada79a8e26d65a1fb3f618a
net: allow sleeping when modifying store_rps_map

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