diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-06-15 19:48:29 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-08-28 11:46:40 -0400 |
commit | 392160335c798bbe94ab3aae6ea0c85d32b81bbc (patch) | |
tree | ce664010089283f464d88cd89c11a60d35923851 /include | |
parent | 8e6401187ef7fb1edc2740832b48bf47ed2c90f2 (diff) |
[SCSI] use scatter lists for all block pc requests and simplify hw handlers
Original From: Mike Christie <michaelc@cs.wisc.edu>
Add scsi_execute_req() as a replacement for scsi_wait_req()
Fixed up various pieces (added REQ_SPECIAL and caught req use after
free)
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_request.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/scsi_request.h b/include/scsi/scsi_request.h index 98719407d554..d64903a617c3 100644 --- a/include/scsi/scsi_request.h +++ b/include/scsi/scsi_request.h | |||
@@ -54,6 +54,9 @@ extern void scsi_do_req(struct scsi_request *, const void *cmnd, | |||
54 | void *buffer, unsigned bufflen, | 54 | void *buffer, unsigned bufflen, |
55 | void (*done) (struct scsi_cmnd *), | 55 | void (*done) (struct scsi_cmnd *), |
56 | int timeout, int retries); | 56 | int timeout, int retries); |
57 | extern int scsi_execute_req(struct scsi_device *sdev, unsigned char *cmd, | ||
58 | int data_direction, void *buffer, unsigned bufflen, | ||
59 | unsigned char *sense, int timeout, int retries); | ||
57 | 60 | ||
58 | struct scsi_mode_data { | 61 | struct scsi_mode_data { |
59 | __u32 length; | 62 | __u32 length; |