lkml.org 
[lkml]   [2013]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] drivers/net: caif: fix wrong rtnl_is_locked() usage
From
From: Konstantin Khlebnikov <khlebnikov@openvz.org>
Date: Mon, 08 Jul 2013 11:23:04 +0400

> rtnl_is_locked() doesn't check who holds this lock, it just tells that it's
> locked right now. if caif::ldisc_close really can be called under rtrnl_lock
> then it should release net device in other context because there is no way
> to grab rtnl_lock without deadlock.
>
> This patch adds work which releases these devices. Also this patch fixes calling
> dev_close/unregister_netdevice without rtnl_lock from caif_ser_exit().
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>

Applied.


\
 
 \ /
  Last update: 2013-07-10 23:41    [W:0.115 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site