mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjanv@redhat.com>
To: steve.cameron@hp.com
Cc: linux-kernel@vger.kernel.org, axboe@suse.de
Subject: Re: [PATCH] 2.5.41, cciss (3 of 3)
Date: 11 Oct 2002 16:21:43 +0200	[thread overview]
Message-ID: <1034346103.1910.9.camel@localhost.localdomain> (raw)
In-Reply-To: <20021011081031.C1911@zuul.cca.cpqcorp.net>

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

On Fri, 2002-10-11 at 16:10, Stephen Cameron wrote:
> 
> Wait up to 20 seconds for polled commands to complete.  A certain multiport
> storage box needs this.
> 
> diff -urN linux-2.5.41-p/drivers/block/cciss.c linux-2.5.41-q/drivers/block/cciss.c
> --- linux-2.5.41-p/drivers/block/cciss.c	Wed Oct  9 15:22:14 2002
> +++ linux-2.5.41-q/drivers/block/cciss.c	Wed Oct  9 15:54:35 2002
> @@ -1318,9 +1318,9 @@
>          unsigned long done;
>          int i;
>  
> -        /* Wait (up to 2 seconds) for a command to complete */
> +        /* Wait (up to 20 seconds) for a command to complete */
>  
> -        for (i = 200000; i > 0; i--) {
> +        for (i = 2000000; i > 0; i--) {
>                  done = hba[ctlr]->access.command_completed(hba[ctlr]);
>                  if (done == FIFO_EMPTY) {
>                          udelay(10);     /* a short fixed delay */

ugh 20 seconds udelay....

why can't you sleep here ?
(and yes 20 seconds WILL trigger watchdogs!)


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-10-11 14:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11 14:10 Stephen Cameron
2002-10-11 14:21 ` Arjan van de Ven [this message]
2002-10-11 14:32 Cameron, Steve
2002-10-11 15:38 Stephen Cameron

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=1034346103.1910.9.camel@localhost.localdomain \
    --to=arjanv@redhat.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steve.cameron@hp.com \
    /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®