shost->ehandler = kthread_run(scsi_error_handler, shost, //SCSI错误恢复
"scsi_eh_%d", shost->host_no);
if (IS_ERR(shost->ehandler)) {
rval = PTR_ERR(shost->ehandler);
goto fail_kfree;
}
scsi_proc_hostdir_add(shost->hostt); //在proc文件系统中为这个主机适配器添加一个目录
return shost;
fail_kfree:
kfree(shost);
return NULL;
}