[SCSI] libfc: use rport timeout values for fcp recovery
authorjohn fastabend <john.r.fastabend@intel.com>
Wed, 1 Dec 2010 00:18:44 +0000 (16:18 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:22 +0000 (12:24 -0600)
commite0883a3c3e7766b390971a49bf728004816c9520
tree503e3ad2aa159def3f97e8001338bfeab4649b2f
parentac17ea8d7d45d0495316edff13faa0dfd6bb2225
[SCSI] libfc: use rport timeout values for fcp recovery

Use the rport value for rec_tov for timeout values when
sending fcp commands. Currently, defaults are being used
which may or may not match the advertised values.

The default may cause i/o to timeout on networks that
set this value larger then the default value. To make
the timeout more configurable in the non-REC mode we
remove the FC_SCSI_ER_TIMEOUT completely allowing the
scsi-ml to do the timeout. This removes an unneeded
timer and allows the i/o timeout to be configured
using the scsi-ml knobs.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c