]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
softirq: adjust comment placement
authorJuergen Gross <jgross@suse.com>
Fri, 27 Mar 2020 10:44:09 +0000 (11:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Mar 2020 10:44:09 +0000 (11:44 +0100)
With commit cef21210fb133 ("rcu: don't process callbacks when holding
a rcu_read_lock()") the comment in process_pending_softirqs() about
not entering the scheduler should have been moved.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/softirq.c

index eba65c5fc06c3447481101b52ae1e6858045cc54..063e93cbe33bf28f8a1eb1ce2ac0c7505226e3a4 100644 (file)
@@ -56,6 +56,7 @@ static void __do_softirq(unsigned long ignore_mask)
 
 void process_pending_softirqs(void)
 {
+    /* Do not enter scheduler as it can preempt the calling context. */
     unsigned long ignore_mask = (1ul << SCHEDULE_SOFTIRQ) |
                                 (1ul << SCHED_SLAVE_SOFTIRQ);
 
@@ -64,7 +65,6 @@ void process_pending_softirqs(void)
         ignore_mask |= 1ul << RCU_SOFTIRQ;
 
     ASSERT(!in_irq() && local_irq_is_enabled());
-    /* Do not enter scheduler as it can preempt the calling context. */
     __do_softirq(ignore_mask);
 }