From: "Norman Diamond" <n0diamond@yahoo.co.jp>
To: <linux-kernel@vger.kernel.org>, <linux-scsi@vger.kernel.org>
Subject: sg timeout problem
Date: Wed, 6 May 2009 16:15:45 +0900 [thread overview]
Message-ID: <BB8F41726E2941CEB399F732BB3ED9E5@DIAMOND8600> (raw)
struct sg_io_hdr sg_io;
[...]
sg_io.timeout = UINT_MAX;
[...]
ioctl(fd, SG_IO, &sg_io);
As far as I can tell, if sg is running on top of LIBATA, the infinite
timeout is honoured.
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.
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
next reply other threads:[~2009-05-06 7:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 7:15 Norman Diamond [this message]
2009-05-06 9:38 ` Alan Cox
2009-05-08 11:22 ` Norman Diamond
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=BB8F41726E2941CEB399F732BB3ED9E5@DIAMOND8600 \
--to=n0diamond@yahoo.co.jp \
--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®