ipr: Always initiate hard reset in kdump kernel
commit7eef3c52dc365d19a05a974bd5fbc883feef1166
authorAnton Blanchard <anton@samba.org>
Mon, 1 Aug 2011 09:43:45 +0000 (1 19:43 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:16 +0000 (7 12:32 -0800)
tree7112ee571e89cc9d66b922cc1a329abeace9d700
parent811198dd14bc3f53f016ffba89b04eb360bcab14
ipr: Always initiate hard reset in kdump kernel

commit 5d7c20b7fa5c6ca19e871b4050e321c99d32bd43 upstream.

During kdump testing I noticed timeouts when initialising each IPR
adapter. While the driver has logic to detect an adapter in an
indeterminate state, it wasn't triggering and each adapter went
through a 5 minute timeout before finally going operational.

Some analysis showed the needs_hard_reset flag wasn't getting set.
We can check the reset_devices kernel parameter which is set by
kdump and force a full reset. This fixes the problem.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/ipr.c