scsi_execute — insert request and wait for the result
int scsi_execute
(struct scsi_device * sdev, const unsigned char * cmd, int data_direction, void * buffer, unsigned bufflen, unsigned char * sense, int timeout, int retries, int flags);
scsi device
scsi command
data direction
data buffer
len of buffer
optional sense buffer
request timeout in seconds
number of times to retry request
or into request flags;
returns the req->errors value which is the scsi_cmnd result field.