mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Petr Vandrovec <vandrove@vc.cvut.cz>, linux-kernel@vger.kernel.org
Subject: Re: 2.4.0-test13-pre1 lockup: run_task_queue or tty_io are wrong
Date: Tue, 19 Dec 2000 02:32:40 +0100	[thread overview]
Message-ID: <20001219023240.A20275@pcep-jamie.cern.ch> (raw)
In-Reply-To: <20001218215123.A19928@pcep-jamie.cern.ch> <Pine.LNX.4.10.10012181556220.4466-100000@penguin.transmeta.com>
In-Reply-To: <Pine.LNX.4.10.10012181556220.4466-100000@penguin.transmeta.com>; from torvalds@transmeta.com on Mon, Dec 18, 2000 at 03:58:08PM -0800

Linus Torvalds wrote:
> > I wasn't clear.  The sentinel is a local structure on the stack, and
> > only exists while run_task_queue is executing.  Another name for this is
> > "deletion-safe pointer".
> 
> Yes, except run_task_queue removes every object it finds. So two
> concurrent run_task_queues would be bad.

That could work, but forget it.  I've just looked at Andrew's patch and
it's much nicer :-)

If you put a spinlock around the list operations in Andrew's version,
you'd have safe tqueue deletions again (if you felt that was worth
having).  Some tricks and you can make it a different spinlock, but I
doubt that would be a net benefit.

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2000-12-19  2:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-17  2:49 Petr Vandrovec
2000-12-17  3:09 ` Linus Torvalds
2000-12-17  3:49   ` Petr Vandrovec
2000-12-17  7:25   ` Andrew Morton
2000-12-17 18:23   ` Jamie Lokier
2000-12-17 20:02     ` Linus Torvalds
2000-12-17 21:05       ` Jeff V. Merkey
2000-12-17 20:23         ` Linus Torvalds
2000-12-18 20:51       ` Jamie Lokier
2000-12-18 23:58         ` Linus Torvalds
2000-12-19  1:32           ` Jamie Lokier [this message]

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=20001219023240.A20275@pcep-jamie.cern.ch \
    --to=lk@tantalophile.demon.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=vandrove@vc.cvut.cz \
    /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

all inboxes | Powered by JetHome®