From: kuznet@ms2.inr.ac.ru
To: maxk@qualcomm.com (Maksim Krasnyanskiy)
Cc: andrea@suse.de, linux-kernel@vger.kernel.org,
torvalds@transmeta.com, mingo@redhat.com,
davem@redhat.com (Dave Miller)
Subject: Re: [PATCH] [IMPORTANT] Re: 2.4.7 softirq incorrectness.
Date: Sat, 28 Jul 2001 21:41:41 +0400 (MSK DST) [thread overview]
Message-ID: <200107281741.VAA12995@ms2.inr.ac.ru> (raw)
In-Reply-To: <4.3.1.0.20010727141716.05651ac0@mail1> from "Maksim Krasnyanskiy" at Jul 27, 1 05:52:01 pm
Hello!
> Here is how it should work (Alex correct me if I'm wrong here).
You _were_ right. Now... I still do not know, I can only comment
and state that current code really looks funny. :-)
> Purpose of STATE_SCHED is to protect tasklet from being _scheduled_ on the several cpus at the same time.
Rather its purpose was not protective. When it was set, it meaned that
the function _will_ be run. tasklet_action was allowed to reset it
at any time before function is called. But not after, of course.
> When we run a tasklet we unlink it from the queue and clear STATE_SCHED to allow it to be scheduled again.
This can be made later, but before the function is called.
> tasklet_schedule calls tasklet_unlock after it schedules tasklet,
Hmm... but this opens one more bug: are schedules not lost, when
they are made while tasklet is running?
> we're not gonna schedule tasklet. And there is no point in locking tasklet on the UP machines.
It can be converted to spinlock. I felt a discomfort creating spinlock,
which never spins. :-)
And one more question:
> - cpu_raise_softirq(cpu, TASKLET_SOFTIRQ); <<<<
> - tasklet_unlock(t);
> - }
> - local_irq_restore(flags); <<<<
But Andrea has just tought me that this is invalid to call cpu_raise_softirq
in such context. No differences of netif_rx() here, all the issues are
the same.
> (Alex you can safely boot latest kernels now :)).
Thank you. I am not afraid of booting not-working kernels, even like this. :-)
I am afraid, when do not feel ground. After your analysis even direction to
ground is lost. :-)
Alexey
next prev parent reply other threads:[~2001-07-28 17:42 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-22 20:44 2.4.7 softirq incorrectness Rusty Russell
2001-07-22 23:34 ` Andrea Arcangeli
2001-07-23 9:06 ` Rusty Russell
2001-07-23 12:05 ` David S. Miller
2001-07-23 14:31 ` Andrea Arcangeli
2001-07-23 14:29 ` Andrea Arcangeli
2001-07-24 9:35 ` Rusty Russell
2001-07-25 19:33 ` Andrea Arcangeli
2001-07-26 20:26 ` Rusty Russell
2001-07-23 9:25 ` Kai Germaschewski
2001-07-23 11:12 ` Jeff Garzik
2001-07-23 14:18 ` Andrea Arcangeli
2001-07-23 22:24 ` Alexey Kuznetsov
2001-07-25 22:23 ` Andrea Arcangeli
2001-07-26 17:46 ` kuznet
2001-07-26 18:03 ` Jeff Garzik
2001-07-26 18:29 ` Andrea Arcangeli
2001-07-27 16:48 ` kuznet
2001-07-27 0:47 ` Maksim Krasnyanskiy
2001-07-27 15:01 ` Andrea Arcangeli
2001-07-27 18:31 ` Maksim Krasnyanskiy
2001-07-27 18:59 ` kuznet
2001-07-27 19:21 ` Maksim Krasnyanskiy
2001-07-27 19:35 ` kuznet
2001-07-28 0:52 ` [PATCH] [IMPORTANT] " Maksim Krasnyanskiy
2001-07-28 17:41 ` kuznet [this message]
2001-07-28 18:02 ` Andrea Arcangeli
2001-07-28 19:02 ` kuznet
2001-07-28 19:32 ` Andrea Arcangeli
2001-07-28 23:28 ` Alexey Kuznetsov
2001-07-29 17:07 ` Linus Torvalds
2001-07-29 17:52 ` kuznet
2001-07-30 18:50 ` Ingo Molnar
2001-07-30 22:47 ` Nigel Gamble
2001-07-30 22:56 ` Christoph Hellwig
2001-07-31 18:08 ` kuznet
2001-07-28 17:54 ` Andrea Arcangeli
2001-07-28 19:17 ` Andrea Arcangeli
2001-07-30 18:32 ` Maksim Krasnyanskiy
2001-07-27 9:34 ` David S. Miller
2001-07-27 17:01 ` kuznet
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=200107281741.VAA12995@ms2.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=andrea@suse.de \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maxk@qualcomm.com \
--cc=mingo@redhat.com \
--cc=torvalds@transmeta.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