From: dv9999 <dyu9999@yahoo.com>
To: linux-scsi@vger.kernel.org
Subject: REQ_FAILFAST flag in async calls
Date: Mon, 31 Mar 2008 10:06:41 -0700 (PDT) [thread overview]
Message-ID: <16397218.post@talk.nabble.com> (raw)
Hi Linux kernel scsi experts,
I would appreciate some information from you or dm-devel on the following:
I am wondering how to pass and support REQ_FAILFAST in scsi_execute_async
function in latest kernel. In sync mode (scsi_execute), caller can pass this
as flag parameter, but how this is done in case of scsi_execute_async?
Thanks.
Dave
Note: the comment below is not accurate in kernel code...
/**
* scsi_execute_async - insert request
* @sdev: scsi device
* @cmd: scsi command
* @cmd_len: length of scsi cdb
* @data_direction: data direction
* @buffer: data buffer (this can be a kernel buffer or scatterlist)
* @bufflen: len of buffer
* @use_sg: if buffer is a scatterlist this is the number of elements
* @timeout: request timeout in seconds
* @retries: number of times to retry request
* @flags: or into request flags
**/
int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd,
int cmd_len, int data_direction, void *buffer,
unsigned bufflen,
int use_sg, int timeout, int retries, void *privdata,
void (*done)(void *, char *, int, int), gfp_t gfp)
--
View this message in context: http://www.nabble.com/REQ_FAILFAST-flag-in-async-calls-tp16397218p16397218.html
Sent from the linux-scsi mailing list archive at Nabble.com.
reply other threads:[~2008-03-31 17:06 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=16397218.post@talk.nabble.com \
--to=dyu9999@yahoo.com \
--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.