]> 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)
commit26100020038d87bf3573dea35f903455be8ecb39
treed000a9bf25ed974f828c7314e0eb2fd51beca21b
parent8b8dd88257ea7e46c0f96ccd823aef8c7396765a
net: allow sleeping when modifying store_rps_map

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