Disable most debugging print messages; should help with performance.
[bluesky.git] / nfs3 / rpc.c
index 4dcd21e..2342b79 100644 (file)
@@ -216,8 +216,10 @@ async_rpc_send_reply(RPCRequest *req, void *result)
 
     time_end = bluesky_now_hires();
 
+#if 0
     printf("RPC[%"PRIx32"]: time = %"PRId64" ns\n",
            req->xid, time_end - req->time_start);
+#endif
 
     /* Clean up. */
     g_string_free(str, TRUE);
@@ -313,12 +315,14 @@ nfs_program_3(RPCRequest *req)
     xdrproc_t _xdr_argument, _xdr_result;
     char *(*local)(char *, RPCRequest *);
 
+#if 0
     if (req->req_proc < sizeof(nfs_proc_names) / sizeof(const char *)) {
         printf("Dispatched NFS RPC message type %s\n",
                nfs_proc_names[req->req_proc]);
     } else {
         printf("Dispatched unknown NFS RPC message type %d\n", req->req_proc);
     }
+#endif
 
     switch (req->req_proc) {
     case NFSPROC3_NULL:
@@ -495,10 +499,12 @@ static void sig_handler(int sig)
 
 static gboolean async_flushd(gpointer data)
 {
+#if 0
     int rpc_count = g_atomic_int_get(&outstanding_rpcs);
     if (rpc_count != 0) {
         g_print("Currently outstanding RPC requests: %d\n", rpc_count);
     }
+#endif
 
     if (fs_dump_requested) {
         bluesky_debug_dump(fs);