From: Stephen Hemminger <shemminger@osdl.org>
To: Daniele Orlandi <daniele@orlandi.com>
Cc: netdev@oss.sgi.com
Subject: Re: Possible race/deadlock in netdev_unregister
Date: Fri, 28 Jan 2005 15:38:06 -0800 [thread overview]
Message-ID: <20050128153806.2c0fd337@dxpl.pdx.osdl.net> (raw)
In-Reply-To: <200501282313.30517.daniele@orlandi.com>
On Fri, 28 Jan 2005 23:13:29 +0100
Daniele Orlandi <daniele@orlandi.com> wrote:
>
> Hello,
>
> First of all, please excuse me if this happens to be a bug in my code :)
> Unfortunately I'm still a newbie with netdev and his interactions with
> netlink, hotplug, etc... please help me understand what's happening and who
> is wrong.
>
> The scenario is this:
>
> - A device driver module (written by me) has two netdevices registered.
> - Another module (written by me, too) provides sockets implementation for the
> protocol spoken by the device.
> - An application has one socket bound to one netdevice
> - I rmmod the device driver module
> - The exit function in the module calls netdev_unregister
> - The event dispatcher notifies the socket layer that a device is going down
> - The socket is marked errored but the application keeps it open for a while
> - The application ends, the socket is destroyed, the remaining reference to
> netdevice is released but netdev_unregister keeps sleeping forever with this
> backtrace:
You are probably self-deadlocking on the netlink mutex (rtnl).
Is your netdevice_notifier handler calling rtnl_lock?
next prev parent reply other threads:[~2005-01-28 23:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-28 22:13 Possible race/deadlock in netdev_unregister Daniele Orlandi
2005-01-28 23:38 ` Stephen Hemminger [this message]
2005-01-29 0:25 ` Daniele Orlandi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050128153806.2c0fd337@dxpl.pdx.osdl.net \
--to=shemminger@osdl.org \
--cc=daniele@orlandi.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).