heartbeat.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) heartbeat.c (025dfdafe77f20b3890981a394774baab7b9c827)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2004, 2005 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

--- 840 unchanged lines hidden (view full) ---

849 unsigned int elapsed_msec;
850
851 mlog(ML_HEARTBEAT|ML_KTHREAD, "hb thread running\n");
852
853 set_user_nice(current, -20);
854
855 while (!kthread_should_stop() && !reg->hr_unclean_stop) {
856 /* We track the time spent inside
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2004, 2005 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

--- 840 unchanged lines hidden (view full) ---

849 unsigned int elapsed_msec;
850
851 mlog(ML_HEARTBEAT|ML_KTHREAD, "hb thread running\n");
852
853 set_user_nice(current, -20);
854
855 while (!kthread_should_stop() && !reg->hr_unclean_stop) {
856 /* We track the time spent inside
857 * o2hb_do_disk_heartbeat so that we avoid more then
857 * o2hb_do_disk_heartbeat so that we avoid more than
858 * hr_timeout_ms between disk writes. On busy systems
859 * this should result in a heartbeat which is less
860 * likely to time itself out. */
861 do_gettimeofday(&before_hb);
862
863 i = 0;
864 do {
865 ret = o2hb_do_disk_heartbeat(reg);

--- 1003 unchanged lines hidden ---
858 * hr_timeout_ms between disk writes. On busy systems
859 * this should result in a heartbeat which is less
860 * likely to time itself out. */
861 do_gettimeofday(&before_hb);
862
863 i = 0;
864 do {
865 ret = o2hb_do_disk_heartbeat(reg);

--- 1003 unchanged lines hidden ---