[Pvfs2-cvs] commit by walt in pvfs2-1/src/apps/kernel/linux:
pvfs2-client-core.c
CVS commit program
cvs at parl.clemson.edu
Thu Aug 31 15:27:42 EDT 2006
Update of /projects/cvsroot/pvfs2-1/src/apps/kernel/linux
In directory parlweb1:/tmp/cvs-serv7540/src/apps/kernel/linux
Modified Files:
Tag: WALT3
pvfs2-client-core.c
Log Message:
added change to pvfs2-client-core for new state machine post
Index: pvfs2-client-core.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/kernel/linux/pvfs2-client-core.c,v
diff -p -u -r1.68 -r1.68.2.1
--- pvfs2-client-core.c 16 Jun 2006 21:01:11 -0000 1.68
+++ pvfs2-client-core.c 31 Aug 2006 19:27:42 -0000 1.68.2.1
@@ -2631,6 +2631,28 @@ int main(int argc, char **argv)
PINT_acache_enable_perf_counter(acache_pc);
/* start a timer to roll over performance counters (acache) */
+ PINT_smcb_alloc(&smcb, PVFS_CLIENT_PERF_COUNT_TIMER,
+ sizeof(struct PINT_client_sm),
+ client_op_state_get_machine,
+ NULL,
+ s_client_dev_context);
+ if (!smcb)
+ {
+ return(-PVFS_ENOMEM);
+ }
+ acach_timer_sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT);
+ acache_timer_sm_p->u.perf_count_timer.interval_secs =
+ &s_opts.perf_time_interval_secs;
+ acache_timer_sm_p->u.perf_count_timer.pc = acache_pc;
+ ret = PINT_client_state_machine_post(smcb, NULL, NULL);
+ if (ret < 0)
+ {
+ gossip_lerr("Error posting job timer.\n");
+ return(ret);
+ }
+
+#if 0
+ /* old timer code */
acache_timer_sm_p = (PINT_client_sm *)malloc(sizeof(PINT_client_sm));
if(!acache_timer_sm_p)
{
@@ -2646,6 +2668,8 @@ int main(int argc, char **argv)
{
return(ret);
}
+ /* end of old code */
+#endif
ret = initialize_ops_in_progress_table();
if (ret)
More information about the Pvfs2-cvs
mailing list