Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 09737cc in mainline


Ignore:
Timestamp:
2012-08-01T06:03:18Z (9 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master
Children:
fbe17545
Parents:
3648ea56
Message:

rcu: Fixed some misplaced asserts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/rcu.c

    r3648ea56 r09737cc  
    868868                                return false;                   
    869869                        }
    870                        
    871                         upd_missed_gp_in_wait(rcu.completed_gp);
    872870                }
    873871        }
     872       
     873        upd_missed_gp_in_wait(rcu.completed_gp);
    874874       
    875875        *completed_gp = rcu.completed_gp;
     
    11261126        spinlock_unlock(&rcu.gp_lock); 
    11271127       
    1128         upd_missed_gp_in_wait(*completed_gp);
     1128        if (!interrupted)
     1129                upd_missed_gp_in_wait(*completed_gp);
    11291130       
    11301131        return !interrupted;
     
    11441145                interrupted = (ret == ESYNCH_INTERRUPTED);
    11451146        }
    1146        
    1147         ASSERT(wait_on_gp <= rcu.completed_gp);
    11481147       
    11491148        return interrupted;
Note: See TracChangeset for help on using the changeset viewer.