Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346115
b: refs/heads/master
c: 3b03ad5
h: refs/heads/master
i:
  346113: f3854ad
  346111: d15aff1
v: v3
  • Loading branch information
Philipp Reisner committed Nov 8, 2012
1 parent cbb25fb commit 12a602d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fb4746d8d3f9c3e48f7fc65ed24bc54bb8032aa
refs/heads/master: 3b03ad5929e3ba5e1c3db7a70d426f883be061c2
5 changes: 3 additions & 2 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ void request_timer_fn(unsigned long data)
struct drbd_request *req; /* oldest request */
struct list_head *le;
struct net_conf *nc;
unsigned long ent = 0, dt = 0, et; /* effective timeout = ko_count * timeout */
unsigned long ent = 0, dt = 0, et, nt; /* effective timeout = ko_count * timeout */

rcu_read_lock();
nc = rcu_dereference(tconn->net_conf);
Expand Down Expand Up @@ -1122,6 +1122,7 @@ void request_timer_fn(unsigned long data)
__drbd_chk_io_error(mdev, 1);
}
}
nt = (time_is_before_eq_jiffies(req->start_time + et) ? jiffies : req->start_time) + et;
spin_unlock_irq(&tconn->req_lock);
mod_timer(&mdev->request_timer, req->start_time + et);
mod_timer(&mdev->request_timer, nt);
}

0 comments on commit 12a602d

Please sign in to comment.