Hannes Reinecke f2818663c8 [SCSI] scsi_transport_fc: Remove capping from dev_loss_tmo
Currently dev_loss_tmo is capped by SCSI_DEVICE_BLOCK_MAX_TIMEOUT.
This causes problem with multipathing when the 'no_path_retry' setting
exceeds the dev_loss_tmo setting, as then the system might run into
a deadlock when all paths have been removed temporarily for longer
than dev_loss_tmo.
The principal reasons for the capping has been that we should
not allow a remote port to remain in status 'blocked' indefinitely,
so the capping is there to ensure that the port status is being reset
eventually.
However, the fast_io_fail_tmo will also move the remote port out of
the 'blocked' state, so for any HBA driver implementing both the
capping should really be on the fast_io_fail_tmo, and not on the
dev_loss_tmo.
This patch implements just that, ie the fast_io_fail_tmo is capped
to SCSI_DEVICE_BLOCK_TIMEOUT and the capping is removed from
dev_loss_tmo when fast_io_fail_tmo is set.
This allows us to synchronize the dev_loss_tmo setting to the
'no_path_retry' setting from multipathing thus avoiding the deadlock.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: James Smart  <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-01-18 10:48:09 -06:00
..
2009-03-28 20:30:18 +00:00
2010-01-17 12:14:03 -06:00
2009-12-10 10:10:56 -06:00
2008-01-11 18:22:30 -06:00
2009-05-15 12:24:59 -04:00
2009-04-03 10:17:31 -05:00
2009-04-03 10:17:31 -05:00
2009-04-03 10:17:17 -05:00
2009-04-03 10:17:17 -05:00
2008-10-16 16:52:06 +02:00
2009-10-31 12:11:38 -07:00
2010-01-18 10:48:07 -06:00
2008-12-29 11:24:14 -06:00
2008-08-29 02:13:10 -07:00
2008-10-09 08:56:13 +02:00
2010-01-18 10:48:08 -06:00
2009-12-22 14:17:56 -08:00
2008-12-28 20:00:03 +01:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-07-02 15:06:25 -06:00
2009-12-10 08:54:15 -06:00
2008-02-07 18:02:44 -06:00
2009-12-10 08:54:13 -06:00
2009-12-10 08:54:13 -06:00
2008-10-23 11:42:19 -05:00
2010-01-18 10:48:07 -06:00
2007-10-19 23:22:55 +02:00