From: Mike Christie <michaelc@cs.wisc.edu>
To: device-mapper development <dm-devel@redhat.com>
Cc: James Bottomley <James.Bottomley@suse.de>, linux-scsi@vger.kernel.org
Subject: Re: Re: [PATCH] Remove capping from dev_loss_tmo
Date: Wed, 16 Dec 2009 20:43:43 -0600 [thread overview]
Message-ID: <4B299ADF.9000907@cs.wisc.edu> (raw)
In-Reply-To: <4B299A30.6030404@cs.wisc.edu>
Mike Christie wrote:
> 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.
>
Oh yeah, I think the idea of the patch is right. If I am reading the
code right, I was just worried about how to handle that issue.
next prev parent reply other threads:[~2009-12-17 2:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 8:26 [PATCH] Remove capping from dev_loss_tmo Hannes Reinecke
2009-12-15 8:54 ` Mike Christie
2009-12-15 9:53 ` Hannes Reinecke
2009-12-17 2:40 ` Mike Christie
2009-12-17 2:43 ` Mike Christie [this message]
2009-12-16 15:33 ` James Smart
2009-12-16 15:34 ` James Smart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B299ADF.9000907@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=James.Bottomley@suse.de \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox