]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] ipr: Always initiate hard reset in kdump kernel
authorAnton Blanchard <anton@samba.org>
Mon, 1 Aug 2011 09:43:45 +0000 (19:43 +1000)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Aug 2011 03:42:48 +0000 (20:42 -0700)
commitea57c06076f3726575361e65a12c9272749c25b0
treec591009fc577e5e525f0960e7f40a3d42d0504f9
parent37a896afee7ccd0a62d986d580082ca4bc97751d
[SCSI] ipr: Always initiate hard reset in kdump kernel

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>
Cc: <stable@kernel.org>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ipr.c