From: guy keren <choo@actcom.co.il>
To: linux-scsi@vger.kernel.org
Subject: questions regarding O_DIRECT with SCSI, and timeout handling
Date: Wed, 19 Nov 2008 00:29:00 +0200 [thread overview]
Message-ID: <492341AC.3080101@actcom.co.il> (raw)
Hi,
i have two questions, for which i didn't manage to find a clear answer
so far. i hope it is ok to ask them here.
1. when opening a SCSI disk block device file with O_DIRECT - am i
guranteed that requests being send using read() or write() system calls
are transfered all the way to the device before returning, or might they
get queued in the low-level device driver? am i guaranteed that the
read() or write() system call will return only when all the underlying
SCSI Commands have completed fully? if not - is there a general way to
achieve this, or do i have to resort to device-specific solutions?
does it matter if this is a real disk device, or a SCSI-over-something
(E.g. iscsi) connection?
2. when sending a SCSI command, a time-out is being delivered with it
from the SCSI mid-layer down to the lower-layer driver (HBA driver,
iscsi driver, etc.). when does the system start to count the time - when
the command was queued to the low-level driver? or when the low-level
driver sent the command to the underlying device (e.g. an internal disk,
external RAID, etc)? or does the system start to count the time before this?
thanks,
--guy
reply other threads:[~2008-11-18 22:42 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=492341AC.3080101@actcom.co.il \
--to=choo@actcom.co.il \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.