All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [PATCH 1/1] rtdm: get spinlocks to lock the scheduler
Date: Fri, 19 Oct 2012 06:50:58 +0200	[thread overview]
Message-ID: <5080DC32.5050603@xenomai.org> (raw)
In-Reply-To: <1350127811-776-1-git-send-email-gilles.chanteperdrix@xenomai.org>

On 10/13/2012 01:30 PM, Gilles Chanteperdrix wrote:

> diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
> index 7c56abc..0f801fe 100644
> --- a/ksrc/nucleus/pod.c
> +++ b/ksrc/nucleus/pod.c
> @@ -2203,6 +2203,12 @@ reschedule:
>  	if (!need_resched)
>  		goto signal_unlock_and_exit;
>  #endif /* !XENO_DEBUG(NUCLEUS) */
> +	if (xnthread_test_state(curr, XNTHREAD_BLOCK_BITS|XNLOCK) == XNLOCK) {


We probably want to add XNZOMBIE here, as we may want to destroy a
thread, even if it has locked the scheduler.

-- 
                                                                Gilles.


  reply	other threads:[~2012-10-19  4:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13 11:27 [Xenomai] [PATCH 0/1 v3] rtdm: get spinlocks to lock the scheduler Gilles Chanteperdrix
2012-10-13 11:30 ` [Xenomai] [PATCH 1/1] " Gilles Chanteperdrix
2012-10-19  4:50   ` Gilles Chanteperdrix [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-12  6:24 [Xenomai] [PATCH 0/1] " Gilles Chanteperdrix
2012-10-12  6:26 ` [Xenomai] [PATCH 1/1] " Gilles Chanteperdrix
2012-10-12  6:51   ` Gilles Chanteperdrix
2012-10-12  9:38     ` Gilles Chanteperdrix

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=5080DC32.5050603@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --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.