public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-scsi@vger.kernel.org
Subject: PATCH: atari sleep_on noise
Date: Thu, 15 Jun 2006 16:35:49 +0100	[thread overview]
Message-ID: <1150385750.3490.88.camel@localhost.localdomain> (raw)

Dunno if anyone cares, dunno if its actually neccessary given the
local_irq_save but it cuts down on the noise when removing deprecated
bits and it seems trivial ...

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.17-rc6/drivers/scsi/atari_scsi.c linux-2.6.17-rc6/drivers/scsi/atari_scsi.c
--- linux.vanilla-2.6.17-rc6/drivers/scsi/atari_scsi.c	2006-06-06 14:01:13.000000000 +0100
+++ linux-2.6.17-rc6/drivers/scsi/atari_scsi.c	2006-06-14 18:03:03.000000000 +0100
@@ -559,8 +559,8 @@
 
 	local_irq_save(flags);
 
-	while( !in_interrupt() && falcon_got_lock && stdma_others_waiting() )
-		sleep_on( &falcon_fairness_wait );
+	if( !in_interrupt())
+		wait_event(&falcon_fairness_wait, falcon_got_lock && stdma_others_waiting());
 
 	while (!falcon_got_lock) {
 		if (in_interrupt())
@@ -573,7 +573,7 @@
 			wake_up( &falcon_try_wait );
 		}
 		else {
-			sleep_on( &falcon_try_wait );
+			wait_event(&falcon_try_wait, !falcon_trying_lock );
 		}
 	}	
 


                 reply	other threads:[~2006-06-15 15:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1150385750.3490.88.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-scsi@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