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

CVS commit program cvs at parl.clemson.edu
Fri Apr 4 12:57:37 EST 2008


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

Modified Files:
	job.c job.h 
Log Message:
Push use of named enumerations for request scheduling parameters all the
way down into request-scheduler.c rather than converting to integer flags.
This fixes a bug that allowed server modification operations to proceed
concurrently as if they were read only.


Index: job.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/job/job.c,v
diff -p -u -r1.180 -r1.181
--- job.c	26 Feb 2008 19:32:25 -0000	1.180
+++ job.c	4 Apr 2008 17:57:37 -0000	1.181
@@ -973,8 +973,8 @@ int job_dev_write_list(void** buffer_lis
 int job_req_sched_post(enum PVFS_server_op op,
                        PVFS_fs_id fs_id,
                        PVFS_handle handle,
-                       int read_only,
-                       int schedule,
+                       enum PINT_server_req_access_type access_type,
+                       enum PINT_server_sched_policy sched_policy,
                        void *user_ptr,
                        job_aint status_user_tag,
                        job_status_s * out_status_p,
@@ -1006,7 +1006,7 @@ int job_req_sched_post(enum PVFS_server_
     jd->status_user_tag = status_user_tag;
 
     ret = PINT_req_sched_post(
-        op, fs_id, handle, read_only, schedule, jd, &(jd->u.req_sched.id));
+        op, fs_id, handle, access_type, sched_policy, jd, &(jd->u.req_sched.id));
 
     if (ret < 0)
     {

Index: job.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/job/job.h,v
diff -p -u -r1.55 -r1.56
--- job.h	11 Feb 2008 17:25:29 -0000	1.55
+++ job.h	4 Apr 2008 17:57:37 -0000	1.56
@@ -17,6 +17,7 @@
 #include "pvfs2-storage.h"
 #include "pvfs2-req-proto.h"
 #include "pint-dev.h"
+#include "src/server/request-scheduler/request-scheduler.h"
 
 typedef PVFS_id_gen_t job_id_t;
 typedef PVFS_context_id job_context_id;
@@ -173,8 +174,8 @@ int job_dev_write_list(void** buffer_lis
 int job_req_sched_post(enum PVFS_server_op op,
                        PVFS_fs_id fs_id,
                        PVFS_handle handle,
-                       int readonly,
-                       int schedule,
+                       enum PINT_server_req_access_type access_type,
+                       enum PINT_server_sched_policy sched_policy,
 		       void *user_ptr,
 		       job_aint status_user_tag,
 		       job_status_s * out_status_p,



More information about the Pvfs2-cvs mailing list