]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a3ff50b4cf9842d46fc34a6383f364886573358
treed000a9bf25ed974f828c7314e0eb2fd51beca21b
parent3206f319785e114cdef2ff8c6dcd9d2ac55129a6
net: allow sleeping when modifying store_rps_map

Commit c30003a71 ("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: c30003a71 ("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