Whamcloud - gitweb
- minor debugging fixes
[fs/lustre-release.git] / lustre / ost / ost_handler.c
index cc41e31..6b8f813 100644 (file)
@@ -499,7 +499,7 @@ int ost_main(void *arg)
 
                wake_up(&ost->ost_done_waitq);
                interruptible_sleep_on(&ost->ost_waitq);
-
+               barrier();
                CDEBUG(D_INODE, "lustre_ost wakes\n");
                CDEBUG(D_INODE, "pick up req here and continue\n"); 
 
@@ -507,13 +507,15 @@ int ost_main(void *arg)
                if (ost->ost_service != NULL) {
                        ptl_event_t ev;
 
+                       CDEBUG(D_INODE, "\n"); 
                        while (1) {
                                struct ptlrpc_request request;
                                struct ptlrpc_service *service;
-
+                               CDEBUG(D_INODE, "\n"); 
                                rc = PtlEQGet(ost->ost_service->srv_eq_h, &ev);
                                if (rc != PTL_OK && rc != PTL_EQ_DROPPED)
                                        break;
+                               CDEBUG(D_INODE, "\n"); 
 
                                service = (struct ptlrpc_service *)ev.mem_desc.user_ptr;