Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19122
b: refs/heads/master
c: 7d3eecf
h: refs/heads/master
v: v3
  • Loading branch information
Moore, Eric authored and James Bottomley committed Jan 31, 2006
1 parent c630ea7 commit 3bb405e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c73787eecdbe4691d4e3f989052db8b552e1ac34
refs/heads/master: 7d3eecf7b2195c64d26f7e7d105d00e5a6dd702e
24 changes: 23 additions & 1 deletion trunk/drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ mptsas_slave_destroy(struct scsi_device *sdev)
struct sas_rphy *rphy;
struct mptsas_portinfo *p;
int i;
VirtDevice *vdev;

/*
* Handle hotplug removal case.
Expand All @@ -347,8 +348,29 @@ mptsas_slave_destroy(struct scsi_device *sdev)
out:
mutex_unlock(&hd->ioc->sas_topology_mutex);
/*
* TODO: Issue target reset to flush firmware outstanding commands.
* Issue target reset to flush firmware outstanding commands.
*/
vdev = sdev->hostdata;
if (vdev->configured_lun){
if (mptscsih_TMHandler(hd,
MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET,
vdev->bus_id,
vdev->target_id,
0, 0, 5 /* 5 second timeout */)
< 0){

/* The TM request failed!
* Fatal error case.
*/
printk(MYIOC_s_WARN_FMT
"Error processing TaskMgmt id=%d TARGET_RESET\n",
hd->ioc->name,
vdev->target_id);

hd->tmPending = 0;
hd->tmState = TM_STATE_NONE;
}
}
mptscsih_slave_destroy(sdev);
}

Expand Down

0 comments on commit 3bb405e

Please sign in to comment.