All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [BUG] 2.4-rc1: modular	nucleus	cannot	be	unloaded
Date: Wed, 01 Aug 2007 11:21:34 +0200	[thread overview]
Message-ID: <1185960095.6611.263.camel@domain.hid> (raw)
In-Reply-To: <46B04DEA.6040000@domain.hid>

On Wed, 2007-08-01 at 11:10 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
> >> Philippe Gerum wrote:
> >>> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
> >>>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> >>>>> Philippe Gerum wrote:
> >>>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> >>>>>>> Already a plain command sequence causes this problem:
> >>>>>>>
> >>>>>>> # modprobe xeno_nucleus
> >>>>>>> # rmmod xeno_nucleus
> >>>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
> >>>>>>>
> >>>>>>> Can anyone confirm?
> >>>>>> Cannot reproduce it here. However, I got another report saying that
> >>>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> >>>> Correction: it would return -EAGAIN, so maybe the status leaks when a
> >>>> restart condition has been encountered in the stat loop. Seems minor,
> >>>> compared to ENOMEM.
> >>>>
> >>> Btw, you will likely need a large number of threads to make this happen
> >>> (~40), at least this is the case for the reporting site.
> >>>  
> >> I think you need a large number of _fluctuating_ threads, as EAGAIN
> >> should only be returned if something (thread count, IRQ assignments)
> >> changes while dumping the list.
> > 
> > This was implied.
> > 
> >>  But I would have to re-check this thing
> >> as well. I assume there is no hope for a test case then?
> >>
> > 
> > Nope.
> 
> The whole issue remains mysterious: None of the Xenomai handlers
> involved in the output of "sched" should be able to return EAGAIN. Only
> if seq_open returned such error (which it shouldn't according to the
> kernel code), this code would be imaginable.

/proc/xenomai/stat is involved, not /sched.

> 
> Jan
> 
-- 
Philippe.




  reply	other threads:[~2007-08-01  9:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-31 16:11 [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded Jan Kiszka
2007-07-31 16:26 ` Philippe Gerum
2007-07-31 16:31   ` Jan Kiszka
2007-07-31 16:47     ` Philippe Gerum
2007-07-31 16:51       ` Philippe Gerum
2007-07-31 16:56         ` Jan Kiszka
2007-07-31 17:16           ` Philippe Gerum
2007-08-01  9:10             ` Jan Kiszka
2007-08-01  9:21               ` Philippe Gerum [this message]
2007-08-01  9:26                 ` Jan Kiszka
2007-08-01  9:48                   ` Philippe Gerum
2007-07-31 18:51   ` Jan Kiszka

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=1185960095.6611.263.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.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.