linux/drivers/scsi/ibmvscsi
Robert Jennings 860784c8a2 [SCSI] ibmvscsi: requeue while CRQ closed
CRQ send errors that return with H_CLOSED should return with
SCSI_MLQUEUE_HOST_BUSY until firmware alerts the client of a CRQ
transport event.  The transport event will either reinitialize and
requeue the requests or fail and return IO with DID_ERROR.

To avoid failing the eh_* functions while re-attaching to the server
adapter this will retry for a period of time while ibmvscsi_send_srp_event
returns SCSI_MLQUEUE_HOST_BUSY.

In ibmvscsi_eh_abort_handler() the loop includes the search of the
event list.  The lock on the hostdata is dropped while waiting to try
again after failing ibmvscsi_send_srp_event.  The event could have been
purged if a login was in progress when the function was called.

In ibmvscsi_eh_device_reset_handler() the loop includes the call to
get_event_struct() because a failing call to ibmvscsi_send_srp_event()
will have freed the event struct.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-01-11 18:22:45 -06:00
..
Makefile [SCSI] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel 2007-10-12 14:49:26 -04:00
ibmvscsi.c [SCSI] ibmvscsi: requeue while CRQ closed 2008-01-11 18:22:45 -06:00
ibmvscsi.h [SCSI] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel 2007-10-12 14:49:26 -04:00
ibmvstgt.c [SCSI] tgt: convert to use the data buffer accessors 2008-01-11 18:22:30 -06:00
iseries_vscsi.c [SCSI] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel 2007-10-12 14:49:26 -04:00
rpa_vscsi.c [SCSI] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel 2007-10-12 14:49:26 -04:00
viosrp.h [SCSI] ibmvscsi: convert the ibmvscsi driver to use include/scsi/srp.h 2006-04-13 10:13:17 -05:00