public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sg timeout problem
@ 2009-05-06  7:15 Norman Diamond
  2009-05-06  9:38 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Norman Diamond @ 2009-05-06  7:15 UTC (permalink / raw)
  To: linux-kernel, linux-scsi

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-08 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06  7:15 sg timeout problem Norman Diamond
2009-05-06  9:38 ` Alan Cox
2009-05-08 11:22   ` Norman Diamond
2009-05-08 12:14     ` Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox