Skip to contentSkip to conversation

resend the new patch for bug 48 to remove incorrect autowrap in last mail

Ocfs2-devel Sonic Zhang 2 participants 2 messages Mar 26, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw
src/nm.c 2004-03-27 09:22:06.176266560 +0800 renamed from src/nm.c.old 2004-03-26 15:21:32.000000000 +0800 +16 -0
@@ -119,6 +119,8 @@
         OcfsIpcCtxt.recv_sock = NULL;
     }
 
+    OcfsIpcCtxt.task = NULL;
+    
     /* signal main thread of ipcdlm's exit */
     complete (&(OcfsIpcCtxt.complete));
 
@@ -250,6 +252,7 @@
     __u64 cfg_seq_num;
     int which, pruned, prune_iters = 0;
     struct buffer_head *bh = NULL;
+    siginfo_t info;
 
     LOG_ENTRY ();
 
@@ -409,6 +412,7 @@
                 OCFS_BH_PUT_DATA(bh);
                 status = ocfs_write_bh(osb, bh, 0, NULL);
                 if (status < 0) {
+                    up(&(osb->publish_lock));
                     LOG_ERROR_STATUS (status);
                     goto finally;
                 }
@@ -439,6 +443,18 @@
         }
         set_current_state (TASK_INTERRUPTIBLE);
         schedule_timeout (osb->hbt - j);
+
+        if (signal_pending(current)) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+            /* ignore the actual signal */
+            dequeue_signal_lock(current, &current->blocked, &info);
+#else
+            spin_lock_irq(&current->sigmask_lock);
+            /* ignore the actual signal */
+            dequeue_signal(&current->blocked, &info);
+            spin_unlock_irq(&current->sigmask_lock);
+#endif
+        }
     }
 
         /* Flush all scheduled tasks */
#1 lore raw

Sonic,
Please, send in proper kernel style. TABs, not spaces.

Joel

Quoted 52 lines · Sonic Zhang
src/nm.c 2004-03-27 09:22:06.176266560 +0800 renamed from src/nm.c.old 2004-03-26 15:21:32.000000000 +0800 +16 -0
@@ -119,6 +119,8 @@
        OcfsIpcCtxt.recv_sock = NULL;
    }
 
+    OcfsIpcCtxt.task = NULL;
+    
    /* signal main thread of ipcdlm's exit */
    complete (&(OcfsIpcCtxt.complete));
 
@@ -250,6 +252,7 @@
    __u64 cfg_seq_num;
    int which, pruned, prune_iters = 0;
    struct buffer_head *bh = NULL;
+    siginfo_t info;
 
    LOG_ENTRY ();
 
@@ -409,6 +412,7 @@
                OCFS_BH_PUT_DATA(bh);
                status = ocfs_write_bh(osb, bh, 0, NULL);
                if (status < 0) {
+                    up(&(osb->publish_lock));
                    LOG_ERROR_STATUS (status);
                    goto finally;
                }
@@ -439,6 +443,18 @@
        }
        set_current_state (TASK_INTERRUPTIBLE);
        schedule_timeout (osb->hbt - j);
+
+        if (signal_pending(current)) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+            /* ignore the actual signal */
+            dequeue_signal_lock(current, &current->blocked, &info);
+#else
+            spin_lock_irq(&current->sigmask_lock);
+            /* ignore the actual signal */
+            dequeue_signal(&current->blocked, &info);
+            spin_unlock_irq(&current->sigmask_lock);
+#endif
+        }
    }
 
        /* Flush all scheduled tasks */

_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel

Signature · 9 lines
"Nothing is wrong with California that a rise in the ocean level
 wouldn't cure."
        - Ross MacDonald

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: [email protected]
Phone: (650) 506-8127