Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] request_timer continuous loop if there is disk-timeout
Date: Mon, 14 Mar 2016 11:23:16 +0100	[thread overview]
Message-ID: <20160314102316.GI17669@soda.linbit> (raw)
In-Reply-To: <CALLFrTQcN6N34wW2VCTmnPpExoe+3Jgh4wckTqZ_SVzb4UOobA@mail.gmail.com>

On Mon, Mar 14, 2016 at 02:37:21PM +0900, 박경민 wrote:
> I have known more request_timer_fn(). Thanks
> 
> I think helper function *time_min_in_future() *function will return the
> nearest future time, right?
> And, next_trigger_time is initialize now value, so always is same.
> void request_timer_fn(unsigned long data)
> {
>     if (dt) {
> ...
>         if (device->disk_state[NOW] > D_FAILED) {
>             next_trigger_time = *time_min_in_future*(now,
>                     next_trigger_time, oldest_submit_jif + dt);         //
> 1st assign
>             restart_timer = true;
>         }
> ...
>     }
>     for_each_connection(connection, device->resource) {
> ...
>         next_trigger_time = *time_min_in_future*(now,
>                 next_trigger_time, pre_send_jif + ent);                 //
> 2nd assign
> ...
>     }
> ...
>     if (restart_timer) {
>         next_trigger_time = *time_min_in_future*(now, next_trigger_time,
> now + et);       // 3rd assign
> ...
>     }
> }
> Maybe, 3 assignments are always same, because now == next_trigger_time,
> which is the nearest.  So, if restart_timer 's value is true, then
> loop continuously even dt or ent exists.

No.

> I don't know how to put the different thing.

Me neither.



Also, you have seen this?

> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of drbd-dev digest..."



  reply	other threads:[~2016-03-14 10:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3.1457694002.12272.drbd-dev@lists.linbit.com>
2016-03-14  5:37 ` [Drbd-dev] drbd-dev Digest, Vol 133, Issue 7 박경민
2016-03-14 10:23   ` Lars Ellenberg [this message]
2016-03-11  7:30 [Drbd-dev] request_timer continuous loop if there is disk-timeout 박경민
2016-03-11 10:02 ` Lars Ellenberg

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=20160314102316.GI17669@soda.linbit \
    --to=lars.ellenberg@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    /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