Skip to contentSkip to conversation

REQ_FAILFAST flag in async calls

DISCUSSION dv9999 1 participant 1 message Mar 31, 2008 SCSI

lore
Share & tools
lore

dv9999

author
#0 lore 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)

Signature · 2 lines
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.