From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Christie Subject: Re: [PATCH] Remove capping from dev_loss_tmo Date: Wed, 16 Dec 2009 20:40:48 -0600 Message-ID: <4B299A30.6030404@cs.wisc.edu> References: <20091215082606.A45B037AD2@ochil.suse.de> <4B274EB1.50500@cs.wisc.edu> <4B275C9D.2060606@suse.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B275C9D.2060606@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Hannes Reinecke Cc: dm-devel@redhat.com, James Bottomley , linux-scsi@vger.kernel.org List-Id: linux-scsi@vger.kernel.org Hannes Reinecke wrote: > Mike Christie wrote: >> Hannes Reinecke wrote: >>> diff --git a/drivers/scsi/scsi_transport_fc.c >>> b/drivers/scsi/scsi_transport_fc.c >>> index 573ce21..6f39bf4 100644 >>> --- a/drivers/scsi/scsi_transport_fc.c >>> +++ b/drivers/scsi/scsi_transport_fc.c >>> @@ -475,7 +475,8 @@ MODULE_PARM_DESC(dev_loss_tmo, >>> "Maximum number of seconds that the FC transport should" >>> " insulate the loss of a remote port. Once this value is" >>> " exceeded, the scsi target is removed. Value should be" >>> - " between 1 and SCSI_DEVICE_BLOCK_MAX_TIMEOUT."); >>> + " between 1 and SCSI_DEVICE_BLOCK_MAX_TIMEOUT if" >>> + " fast_io_fail_tmo is not set."); >>> >> What was the largest timeout value you tried? I think I am hitting a bug >> with iscsi where if you pass queue_delayed_work a large enough value it >> will overflow and instead of getting 100 minutes you get 1. > > Well, 0x7fffffff works, 0xffffffff is rejected with -EINVAL. > And so should every other value with the top bit set. > If someone did 0x7fffffff, then we do 0x7fffffff * HZ in fc_queue_devloss_work(shost, &rport->dev_loss_work, timeout * HZ); on a 32bit box, it won't overflow to the value the user wanted will it? I think it will not happen normally, but users will try it like they have with iscsi and they will end up not knowing how to set it really high.