Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229000
b: refs/heads/master
c: cfc069d
h: refs/heads/master
v: v3
  • Loading branch information
Sunil Mushran authored and Joel Becker committed Dec 16, 2010
1 parent 838f504 commit 07b811e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb0586bd4c77c531fe0be4ae860ec642450eeda5
refs/heads/master: cfc069d3fa24d7c6357e3b731e97f94db495bf0c
6 changes: 6 additions & 0 deletions trunk/fs/ocfs2/cluster/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ static int o2hb_thread(void *data)

set_user_nice(current, -20);

/* Pin node */
o2nm_depend_this_node();

while (!kthread_should_stop() && !reg->hr_unclean_stop) {
/* We track the time spent inside
* o2hb_do_disk_heartbeat so that we avoid more than
Expand Down Expand Up @@ -1132,6 +1135,9 @@ static int o2hb_thread(void *data)
mlog_errno(ret);
}

/* Unpin node */
o2nm_undepend_this_node();

mlog(ML_HEARTBEAT|ML_KTHREAD, "hb thread exiting\n");

return 0;
Expand Down

0 comments on commit 07b811e

Please sign in to comment.