scsi: libfc: sanitize E_D_TOV and R_A_TOV setting
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:41 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:51 +0000 (17:29 -0500)
commit76e72ad117812bb79abf647ac40ca6df1740b729
treeccf557dbf9e75bdc32e10bc9490e20fc88a23a8f
parenta50cc9eccce6ae9708e8a713c4070dc2efd1b3d5
scsi: libfc: sanitize E_D_TOV and R_A_TOV setting

When setting the FCP timeout we need to ensure a lower boundary
for E_D_TOV and R_A_TOV, otherwise we'd be getting spurious I/O
issues due to the fcp timer firing too early.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_rport.c