mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Norman Diamond" <n0diamond@yahoo.co.jp>
To: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
Cc: <linux-kernel@vger.kernel.org>, <linux-scsi@vger.kernel.org>
Subject: Re: sg timeout problem
Date: Fri, 8 May 2009 20:22:23 +0900	[thread overview]
Message-ID: <AB775258E58247F6A0960B1AFEC0E103@DIAMOND8600> (raw)
In-Reply-To: <20090506103852.19cb69b9@lxorguk.ukuu.org.uk>

>> But if sg is running on top of an actual SCSI driver, someone aborts the
>> ioctl after 3 seconds.  The ioctl returns success even though the
>> operation didn't complete.  I tried this with two Adaptec drivers and one
>> NinjaSCSI driver with 100% repro.
>>
>> What am I missing?  I need the call to run to completion.
>
> If you set it to the max of a signed int does it behave, or to a large
> value thats well under the limit. That will help tell if there is a
> problem with sign handling in the scsi code somewhere or it is getting
> multiplied up for some reason.

I have the impression now that the drives are lying and it's not the fault
of the drivers or cards.  The same problem occured with a fourth card and a
non-Linux system.

Anyway I also tried changing the timeout to 86400000 milliseconds (one day)
and it made no difference.  So again I stop blaming the drivers.

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

  reply	other threads:[~2009-05-08 11:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  7:15 Norman Diamond
2009-05-06  9:38 ` Alan Cox
2009-05-08 11:22   ` Norman Diamond [this message]
2009-05-08 12:14     ` Douglas Gilbert

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=AB775258E58247F6A0960B1AFEC0E103@DIAMOND8600 \
    --to=n0diamond@yahoo.co.jp \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®