]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rtnl_lock_killable'
authorDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 16:31:19 +0000 (12:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 16:31:19 +0000 (12:31 -0400)
commitd26c8cbb6b752996a28f6bae0235ce3692006728
tree4c627299436d5e6218cbb07d6bd28ca45e8a4f4e
parent06b8da8ae562fbb723b7cd99fa82c4e1bb13f056
parentff4e1d653bfdb402a9ba1bcfcbd0732fe2605026
Merge branch 'rtnl_lock_killable'

Kirill Tkhai says:

====================
Introduce 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 patchset 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. Also, the first place is made to use it.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>