diff options
Diffstat (limited to 'include/scsi/scsi_cmnd.h')
-rw-r--r-- | include/scsi/scsi_cmnd.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 53e170586c26..65ab5145a09b 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h | |||
@@ -33,20 +33,17 @@ struct scsi_cmnd { | |||
33 | struct list_head list; /* scsi_cmnd participates in queue lists */ | 33 | struct list_head list; /* scsi_cmnd participates in queue lists */ |
34 | struct list_head eh_entry; /* entry for the host eh_cmd_q */ | 34 | struct list_head eh_entry; /* entry for the host eh_cmd_q */ |
35 | int eh_eflags; /* Used by error handlr */ | 35 | int eh_eflags; /* Used by error handlr */ |
36 | void (*done) (struct scsi_cmnd *); /* Mid-level done function */ | ||
37 | 36 | ||
38 | /* | 37 | /* |
39 | * A SCSI Command is assigned a nonzero serial_number before passed | 38 | * A SCSI Command is assigned a nonzero serial_number before passed |
40 | * to the driver's queue command function. The serial_number is | 39 | * to the driver's queue command function. The serial_number is |
41 | * cleared when scsi_done is entered indicating that the command | 40 | * cleared when scsi_done is entered indicating that the command |
42 | * has been completed. It currently doesn't have much use other | 41 | * has been completed. It is a bug for LLDDs to use this number |
43 | * than printk's. Some lldd's use this number for other purposes. | 42 | * for purposes other than printk (and even that is only useful |
44 | * It's almost certain that such usages are either incorrect or | 43 | * for debugging). |
45 | * meaningless. Please kill all usages other than printk's. Also, | ||
46 | * as this number is always identical to ->pid, please convert | ||
47 | * printk's to use ->pid, so that we can kill this field. | ||
48 | */ | 44 | */ |
49 | unsigned long serial_number; | 45 | unsigned long serial_number; |
46 | |||
50 | /* | 47 | /* |
51 | * This is set to jiffies as it was when the command was first | 48 | * This is set to jiffies as it was when the command was first |
52 | * allocated. It is used to time how long the command has | 49 | * allocated. It is used to time how long the command has |
@@ -116,7 +113,6 @@ struct scsi_cmnd { | |||
116 | int result; /* Status code from lower level driver */ | 113 | int result; /* Status code from lower level driver */ |
117 | 114 | ||
118 | unsigned char tag; /* SCSI-II queued command tag */ | 115 | unsigned char tag; /* SCSI-II queued command tag */ |
119 | unsigned long pid; /* Process ID, starts at 0. Unique per host. */ | ||
120 | }; | 116 | }; |
121 | 117 | ||
122 | extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t); | 118 | extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t); |
@@ -124,7 +120,6 @@ extern struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *, gfp_t); | |||
124 | extern void scsi_put_command(struct scsi_cmnd *); | 120 | extern void scsi_put_command(struct scsi_cmnd *); |
125 | extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *, | 121 | extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *, |
126 | struct device *); | 122 | struct device *); |
127 | extern void scsi_io_completion(struct scsi_cmnd *, unsigned int); | ||
128 | extern void scsi_finish_command(struct scsi_cmnd *cmd); | 123 | extern void scsi_finish_command(struct scsi_cmnd *cmd); |
129 | extern void scsi_req_abort_cmd(struct scsi_cmnd *cmd); | 124 | extern void scsi_req_abort_cmd(struct scsi_cmnd *cmd); |
130 | 125 | ||