From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [RFC][PATCH] shirq locking rework
Date: Fri, 22 Jun 2007 14:24:22 +0200 [thread overview]
Message-ID: <467BBF76.5040202@domain.hid> (raw)
In-Reply-To: <b647ffbd0706220517j693a736bk5cd3a46fc2635200@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]
Dmitry Adamushko wrote:
> On 22/06/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> [ ... ]
>>
>> Only compile-tested under various .configs. Any comment welcome.
>>
>
>> @@ -76,7 +102,7 @@ static inline void xnintr_stat_counter_d
>> static void xnintr_irq_handler(unsigned irq, void *cookie)
>> {
>> xnsched_t *sched = xnpod_current_sched();
>> - xnintr_t *intr = (xnintr_t *)cookie;
>> + xnintr_t *intr;
>> xnstat_runtime_t *prev;
>> xnticks_t start;
>> int s;
>> @@ -86,6 +112,16 @@ static void xnintr_irq_handler(unsigned
>> xnltt_log_event(xeno_ev_ienter, irq);
>>
>> ++sched->inesting;
>> +
>> + xnlock_get(&xnirqs[irq].lock);
>> +
>> +#ifdef CONFIG_SMP
>> + /* In SMP case, we have to reload the cookie under the per-IRQ
>> lock
>> + to avoid racing with xnintr_detach. */
>> + intr = rthal_irq_cookie(&rthal_domain, irq);
>> +#else
>> + intr = cookie;
>> +#endif
>> s = intr->isr(intr);
>
> I guess, 'intr' can be NULL here.
Yeah, needs to be caught as well.
>
> Could you please send me attached (non-inlined) a combo patch on top
> of the trunk version (as I see this one seems to be on top of your
> previous one)? I'll try to come up with some solution during this
> weekend.
My patch was an attachment (though I wonder we everyone has so much
problems with inlines - broken mailers all over the place), and it was
already against trunk (#2654). Philippe merged my preliminary fix this
morning.
Looking forward to your suggestions!
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-06-22 12:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-19 18:40 [Xenomai-core] [RFC][PATCH] shirq locking rework Jan Kiszka
2007-06-20 21:04 ` Dmitry Adamushko
2007-06-20 21:58 ` Jan Kiszka
2007-06-21 8:03 ` Dmitry Adamushko
2007-06-21 9:20 ` Jan Kiszka
2007-06-21 9:52 ` Dmitry Adamushko
2007-06-21 12:56 ` Jan Kiszka
2007-06-21 13:14 ` Dmitry Adamushko
2007-06-21 13:40 ` Jan Kiszka
2007-06-22 11:53 ` Jan Kiszka
2007-06-22 12:17 ` Dmitry Adamushko
2007-06-22 12:24 ` Jan Kiszka [this message]
[not found] ` <467A5B85.9010103@domain.hid>
2007-06-21 17:24 ` Philippe Gerum
2007-06-21 17:46 ` Jan Kiszka
-- strict thread matches above, loose matches on Subject: below --
2007-06-25 19:11 Dmitry Adamushko
2007-06-25 20:29 ` Jan Kiszka
2007-06-30 8:36 ` Dmitry Adamushko
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=467BBF76.5040202@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=dmitry.adamushko@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.