[SCSI] iscsi class: modify handling of replacement timeout
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 11 Nov 2009 22:34:34 +0000 (16:34 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:37 +0000 (12:01 -0600)
commitfdd46dcbe4468a1f47a2cc9be442d11c3d21dd68
treea8404ea68065de3bd3b26b159db3650d463e23ab
parent3fe5ae8b4c4d3a82c755074878da7ddb9dde381e
[SCSI] iscsi class: modify handling of replacement timeout

This patch modifies the replacement/recovery_timeout so it works
more like the fc fast io fail tmo.

If userspace tries to set the replacement/recovery_timeout to less than
zero, we will turn off the forced recovery cleanup.

If userspace sets the value to 0 then we will force the recovery
cleanup immediately.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_iscsi.c