Remove extra memset() left after r342388.
This memset() wiped MPI2_FUNCTION_SCSI_TASK_MGMT set by mprsas_alloc_tm(), that broke target reset on device removal, making later re-insertion into the same slot impossible, since firmware was still waiting for the driver to finish with the removed device. MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
d36abc37b1
commit
fb7f4849a1
@ -515,7 +515,6 @@ mprsas_prepare_remove(struct mprsas_softc *sassc, uint16_t handle)
|
||||
mprsas_rescan_target(sc, targ);
|
||||
|
||||
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
|
||||
memset(req, 0, sizeof(*req));
|
||||
req->DevHandle = htole16(targ->handle);
|
||||
req->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET;
|
||||
|
||||
|
@ -515,7 +515,6 @@ mpssas_prepare_remove(struct mpssas_softc *sassc, uint16_t handle)
|
||||
mpssas_rescan_target(sc, targ);
|
||||
|
||||
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)cm->cm_req;
|
||||
memset(req, 0, sizeof(*req));
|
||||
req->DevHandle = htole16(targ->handle);
|
||||
req->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user