目录
SCSI错误恢复
每个SCSI命令都用scsi_cmnd表示。每个SCSI命令有两个连接件将自身链到不同的链表中,分别为list域和eh_entry域。其中前者用来链到空闲链表或者SCSI设备的命令链表。后者用于完成和错误恢复链表。
struct scsi_cmnd {
struct scsi_device *device;
struct list_head list; /* scsi_cmnd participates in queue lists */
struct list_head eh_entry; /* entry for the host eh_cmd_q */
struct request *request; /* The command we are working on */
int result; /* Status code from lower level driver *
/* Low-level done function - can be used by low-level driver to point
* to completion function. Not used by mid/upper level code. */
void (*scsi_done) (struc