From: Andreas Bombe <aeb@debian.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] amiflop: get rid of sleep_on calls
Date: Tue, 9 Dec 2008 18:34:12 +0000 [thread overview]
Message-ID: <20081209183412.GA9318@infernal.debian.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0812090927580.29640@anakin>
[Resend, vger appears not to like other smtp server]
On Tue, Dec 09, 2008 at 09:31:11AM +0100, Geert Uytterhoeven wrote:
> I'm afraid my Amiga floppy drive doesn't work anymore...
> Any other testers available?
I still have a long unused Amiga around. However, it has not been
graced with Linux yet, has no network device, the harddisk wasn't
sounding very happy the last time I ran it those many years ago and that
probably didn't improve. So I might be able to test it myself, but it
would take time to set up.
> > --- a/drivers/block/amiflop.c
> > +++ b/drivers/block/amiflop.c
> > @@ -220,19 +218,17 @@ static irqreturn_t ms_isr(int irq, void *dummy)
> > A more generic routine would do a schedule a la timer.device */
> > static void ms_delay(int ms)
> > {
> > - unsigned long flags;
> > int ticks;
> > + static DECLARE_MUTEX(mutex);
> ^^^^^^^^^^^^^
> Shouldn't this be a real mutex (declared using DEFINE_MUTEX(mutex)) instead of
> a semaphore used as a mutex?
Yes, it should be. I came back to Linux kernel development only in the
recent months and totally missed these kind of locks. I'll prepare a
new patch later.
next prev parent reply other threads:[~2008-12-09 18:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 16:59 [PATCH] amiflop: get rid of sleep_on calls Andreas Bombe
2008-12-09 8:26 ` Joerg Dorchain
2008-12-10 0:48 ` Andreas Bombe
2008-12-10 8:16 ` Joerg Dorchain
2008-12-16 20:23 ` Geert Uytterhoeven
2008-12-17 8:00 ` Joerg Dorchain
2008-12-09 8:31 ` Geert Uytterhoeven
2008-12-09 18:34 ` Andreas Bombe [this message]
2008-12-10 1:02 ` [PATCH v2] " Andreas Bombe
2008-12-14 16:21 ` Geert Uytterhoeven
2008-12-23 14:22 ` Andreas Bombe
2008-12-31 16:30 ` Geert Uytterhoeven
2008-12-13 15:20 ` [PATCH] " Kolbjørn Barmen
2008-12-13 21:30 ` Geert Uytterhoeven
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=20081209183412.GA9318@infernal.debian.net \
--to=aeb@debian.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox