[SCSI] zfcp: Fix adapter activation on link down
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 5 Oct 2010 15:12:53 +0000 (17:12 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 14:42:35 +0000 (09:42 -0500)
commit0df138476c8306478d6e726f044868b4bccf411c
tree440dbf3d24868f47addb536089ae1ff7353a31a4
parent229aebb873e29726b91e076161649cf45154b0bf
[SCSI] zfcp: Fix adapter activation on link down

If an exchange config is executed while the local link is down, the
request succeeds but the returned data is incomplete.  Proceeding with
the adapter activation is leading to an unpredictable behaviour (e.g.
kernel panic) caused by invalid values.  In such a scenario the
recommended ERP is to retry the action and wait for a link up event.
If the issue persists the activation has to fail.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Sigend-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/s390/scsi/zfcp_fsf.c