From: Till Immanuel Patzschke <tip@prs.de>
To: linux-ppp@vger.kernel.org
Subject: PPPoA driver calls ppp_unregister_channel from invalid context
Date: Thu, 29 Jul 2004 19:54:35 +0000 [thread overview]
Message-ID: <410955FB.8030606@prs.de> (raw)
Hi,
in case a VCC is being closed, pppoatm calls pppoatm_unassign_vcc (from
pppoatm_push), which calls ppp_unregister_channel. However the context
pppoatm_push is running in is not "process context" as demanded by
ppp_unregister_channel, resulting in (valid) warning messages, like the
one below.
The kernel is 2.6.7, the ATM card is a Fore HE155 (which shouldn't
matter since pppoatm_push is definitely not "process context".
What would be the right way of unregistering the channel in case the VCC
is being closed (or imagine a native PPPoEoA driver [yes, not using
br2684...]) receiving a PADT, so one has to initiate an unregister from
the driver?
Rganks for the help,
Immanuel
Jul 28 16:09:34 ipat06 kernel: Debug: sleeping function called from
invalid context at include/linux/rwsem.h:66
Jul 28 16:09:34 ipat06 kernel: in_atomic():1, irqs_disabled():1
Jul 28 16:09:34 ipat06 kernel: [dump_stack+30/32] dump_stack+0x1e/0x20
Jul 28 16:09:34 ipat06 kernel: [<c01080de>] dump_stack+0x1e/0x20
Jul 28 16:09:34 ipat06 kernel: [__might_sleep+199/224]
__might_sleep+0xc7/0xe0
Jul 28 16:09:34 ipat06 kernel: [<c011ff57>] __might_sleep+0xc7/0xe0
Jul 28 16:09:34 ipat06 kernel: [pg0+945292153/1068032000]
ppp_unregister_channel+0x39/0x3e0 [ppp_generic]
Jul 28 16:09:34 ipat06 kernel: [<f8af0379>]
ppp_unregister_channel+0x39/0x3e0 [ppp_generic]
...
--
Till Immanuel Patzschke, CTO
Q Inc
next reply other threads:[~2004-07-29 19:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-29 19:54 Till Immanuel Patzschke [this message]
2004-07-29 21:44 ` PPPoA driver calls ppp_unregister_channel from invalid context Michal Ostrowski
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=410955FB.8030606@prs.de \
--to=tip@prs.de \
--cc=linux-ppp@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.