All of lore.kernel.org
 help / color / mirror / Atom feed
* REQ_FAILFAST flag in async calls
@ 2008-03-31 17:06 dv9999
  0 siblings, 0 replies; only message in thread
From: dv9999 @ 2008-03-31 17:06 UTC (permalink / raw)
  To: linux-scsi


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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-31 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-31 17:06 REQ_FAILFAST flag in async calls dv9999

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.