• K
    net: Add rtnl_lock_killable() · 79ffdfc6
    Kirill Tkhai 提交于
    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: NKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    79ffdfc6
rtnetlink.c 113.5 KB