[PATCH] switch fd1772.c from sleep_on to wait_event

From: Christoph Hellwig (hch_at_lst.de)
Date: 07/30/05

  • Next message: Jan Engelhardt: "Re: kernel guide to space (updated)"
    Date:	Sat, 30 Jul 2005 20:30:10 +0200
    To: rmk@arm.linux.org.uk
    
    

    doesn't make the local irq disabling around it less buggy, but at least
    we replace the offender with the right kind of primitive.

    Signed-off-by: Christoph Hellwig <hch@lst.de>

    Index: linux-2.6/drivers/acorn/block/fd1772.c
    ===================================================================
    --- linux-2.6.orig/drivers/acorn/block/fd1772.c 2005-04-30 10:17:13.000000000 +0200
    +++ linux-2.6/drivers/acorn/block/fd1772.c 2005-05-27 14:15:43.000000000 +0200
    @@ -1283,8 +1283,7 @@
             if (fdc_busy) return;
             save_flags(flags);
             cli();
    - while (fdc_busy)
    - sleep_on(&fdc_wait);
    + wait_event(fdc_wait, !fdc_busy);
             fdc_busy = 1;
             ENABLE_IRQ();
             restore_flags(flags);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jan Engelhardt: "Re: kernel guide to space (updated)"

    Relevant Pages

    • Re: replacement for formmail
      ... I just started working for someone who is using it and we are trying to lock his sites down more than they have been in the past and are looking for a replacement. ... A buggy, insecure perl script used for sending mail from a website. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: replacement for formmail
      ... for a replacement. ... A buggy, insecure perl script used for sending mail from a website. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Mail configuration (was: Should I Abandon Mutt and Exim4?)
      ... > It is buggy, I would not recommend ... Well, this time at least, it was a bug in my filter: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Risk of using Iceweasel / firefox [Was Re: GLIBC_2.4]
      ... What all can a buggy Iceweasel allow? ... What about a normal user who is a member of ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [opensuse] ocfs2 package updates?
      ... contains buggy 1.2.2 code. ... I suspect that the repository used for SLES ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
      (SuSE)