[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/io/job: job.c

CVS commit program cvs at parl.clemson.edu
Tue Feb 26 09:31:54 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/io/job
In directory parlweb1:/tmp/cvs-serv32107

Modified Files:
      Tag: small-file-branch
	job.c 
Log Message:
tweak to queue handling, more gossip


Index: job.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/job/job.c,v
diff -p -u -r1.177.2.22 -r1.177.2.23
--- job.c	26 Feb 2008 14:15:22 -0000	1.177.2.22
+++ job.c	26 Feb 2008 14:31:53 -0000	1.177.2.23
@@ -4564,10 +4564,13 @@ static void precreate_pool_fill_thread_m
         /* now that we have collected the sleepers into our own private
          * queue, we can push them without the precreate_pool_mutex held
          */
-        qlist_for_each(iterator, &tmp_list)
+        gossip_debug(GOSSIP_JOB_DEBUG, "About to push on get_handles() sleepers.\n");
+        qlist_for_each_safe(iterator, scratch, &tmp_list)
         {
             jd_checker = qlist_entry(iterator, struct job_desc,
                 job_desc_q_link);
+            qlist_del(&jd_checker->job_desc_q_link);
+            gossip_debug(GOSSIP_JOB_DEBUG, "Pushing get_handles() sleeper for jd: %p.\n", jd_checker);
             precreate_pool_get_handles_try_post(jd_checker);
         }
     }



More information about the Pvfs2-cvs mailing list