Home
last modified time | relevance | path

Searched hist:"79 ffdfc6522ae33d8a33e971070c08ee5f27439b" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/
H A Drtnetlink.hdiff 79ffdfc6522ae33d8a33e971070c08ee5f27439b Wed Mar 14 14:17:20 CDT 2018 Kirill Tkhai <ktkhai@virtuozzo.com> net: Add rtnl_lock_killable()

rtnl_lock() is widely used mutex in kernel. Some of kernel code
does memory allocations under it. In case of memory deficit this
may invoke OOM killer, but the problem is a killed task can't
exit if it's waiting for the mutex. This may be a reason of deadlock
and panic.

This patch adds a new primitive, which responds on SIGKILL, and
it allows to use it in the places, where we don't want to sleep
forever.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/core/
H A Drtnetlink.cdiff 79ffdfc6522ae33d8a33e971070c08ee5f27439b Wed Mar 14 14:17:20 CDT 2018 Kirill Tkhai <ktkhai@virtuozzo.com> net: Add rtnl_lock_killable()

rtnl_lock() is widely used mutex in kernel. Some of kernel code
does memory allocations under it. In case of memory deficit this
may invoke OOM killer, but the problem is a killed task can't
exit if it's waiting for the mutex. This may be a reason of deadlock
and panic.

This patch adds a new primitive, which responds on SIGKILL, and
it allows to use it in the places, where we don't want to sleep
forever.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>