]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipr: Always initiate hard reset in kdump kernel
authorAnton Blanchard <anton@samba.org>
Mon, 1 Aug 2011 09:43:45 +0000 (19:43 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:26 +0000 (15:35 -0400)
commitb5a5ec9c0f013e63564aceb7e64a5cb9391fc6b8
tree38fae973704ca25f15c4e2c583a2264028469b8c
parent95e8d5a47d4b06822dbdb6eef332b4e3e05d2a12
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/scsi/ipr.c