Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4993
b: refs/heads/master
c: fc2b035
h: refs/heads/master
i:
  4991: 2971e93
v: v3
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Jul 3, 2005
1 parent 608ae74 commit 5cffaa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eda912e34a0cc40ddd502b3f984e37ebb2b13a71
refs/heads/master: fc2b035d38c06a884cb521bb4a1e1183f5eaccf1
6 changes: 6 additions & 0 deletions trunk/drivers/fc4/fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ void fcp_register(fc_channel *fc, u8 type, int unregister)
kfree (fc->scsi_bitmap);
kfree (fc->cmd_slots);
FCND(("Unregistering\n"));
#if 0
if (fc->rst_pkt) {
if (fc->rst_pkt->eh_state == SCSI_STATE_UNUSED)
kfree(fc->rst_pkt);
Expand All @@ -373,6 +374,7 @@ void fcp_register(fc_channel *fc, u8 type, int unregister)
printk("FC: Reset in progress. Now?!");
}
}
#endif
FCND(("Unregistered\n"));
}
} else
Expand Down Expand Up @@ -915,18 +917,21 @@ int fcp_scsi_abort(Scsi_Cmnd *SCpnt)
}
}

#if 0
void fcp_scsi_reset_done(Scsi_Cmnd *SCpnt)
{
fc_channel *fc = FC_SCMND(SCpnt);

fc->rst_pkt->eh_state = SCSI_STATE_FINISHED;
up(fc->rst_pkt->device->host->eh_action);
}
#endif

#define FCP_RESET_TIMEOUT (2*HZ)

int fcp_scsi_dev_reset(Scsi_Cmnd *SCpnt)
{
#if 0 /* broken junk, but if davem wants to compile this driver, let him.. */
unsigned long flags;
fcp_cmd *cmd;
fcp_cmnd *fcmd;
Expand Down Expand Up @@ -1000,6 +1005,7 @@ int fcp_scsi_dev_reset(Scsi_Cmnd *SCpnt)
}
fc->rst_pkt->eh_state = SCSI_STATE_UNUSED;
return SUCCESS;
#endif
}

static int __fcp_scsi_host_reset(Scsi_Cmnd *SCpnt)
Expand Down

0 comments on commit 5cffaa2

Please sign in to comment.