kernel-fxtec-pro1x/drivers/s390
Christof Schmitt 8830271c48 [SCSI] zfcp: Dont fail SCSI commands when transitioning to blocked fc_rport
If an error occurs that triggers the call to fc_remote_port_delete,
ideally this call would happen before any I/O is passed back to the
SCSI midlayer through scsi_done. The SCSI midlayer will retry the
commands and fc_remote_port_chkready will return the correct status
code.  But with the delay between calling scsi_done in softirq context
and the call to fc_remote_port_delete from the workqueue, there is a
window where zfcp returns DID_ERROR. This leads to SCSI error recovery
which then leads to offline SCSI devices since all recovery actions
will fail with the rport now being blocked.

In this window, zfcp has to return DID_IMM_RETRY just as the FC
transport class would do in fc_remote_port_chkready for the blocked
fc_rport. As soon as the fc_rport is BLOCKED, fc_remote_port_chkready
will do the right thing.

Additionally, there are two more cases to catch in zfcp_scsi_queuecommand:
- After the port has been opened, the unit has to be opened. During
  this period I/O has to be retried. This can also be handled with
  DID_IMM_RETRY.
- If the access to the unit fails, but the port is good, then
  this single unit cannot be accessed and I/O to this unit has to fail
  without involving the FC transport class.

Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-12-04 12:02:09 -06:00
..
block [S390] dasd: use idal for device characteristics 2009-10-14 12:43:53 +02:00
char [S390] sclp_vt220 build fix 2009-10-14 12:43:54 +02:00
cio [S390] cio: change misleading console logic 2009-10-14 12:43:53 +02:00
crypto [S390] zcrypt: Improve some comments 2009-10-06 10:35:09 +02:00
kvm [S390] kvm: use console_initcall() to initialize s390 virtio console 2009-09-11 10:29:52 +02:00
net trivial: remove unnecessary semicolons 2009-09-21 15:14:58 +02:00
scsi [SCSI] zfcp: Dont fail SCSI commands when transitioning to blocked fc_rport 2009-12-04 12:02:09 -06:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00