From: Paul Mackerras <paulus@samba.org>
To: Pavel Machek <pavel@suse.cz>
Cc: Rusty trivial patch monkey Russell <trivial@rustcorp.com.au>,
vojtech@suse.cz, kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Fix locking in input
Date: Mon, 24 Nov 2003 08:51:16 +1100 [thread overview]
Message-ID: <16321.11220.891098.198174@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20031122155224.GA249@elf.ucw.cz>
Pavel Machek writes:
> input uses "volatile signed char" as a shared variable between normal
> and interrupt threads (look at _sendbyte()). Thats bad idea, this
> switches it to atomic_t.
This change looks unnecessary to me - we aren't trying to increment or
decrement the variable, just set it and read it. Reading and writing
individual bytes is atomic on any platform we care about.
Paul.
next prev parent reply other threads:[~2003-11-23 21:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 15:52 Pavel Machek
2003-11-23 21:51 ` Paul Mackerras [this message]
[not found] ` <20031123134140.GE22591@vana.vc.cvut.cz>
2003-11-24 11:05 ` Pavel Machek
2003-11-23 22:24 Manfred Spraul
2003-11-23 22:34 ` Russell King
2003-11-23 22:54 ` Manfred Spraul
2003-12-03 23:44 ` Timothy Miller
2003-12-04 1:29 ` Linus Torvalds
2003-11-24 9:34 ` Pavel Machek
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=16321.11220.891098.198174@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
--cc=trivial@rustcorp.com.au \
--cc=vojtech@suse.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®