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

Changeset fbe17545 in mainline


Ignore:
Timestamp:
2012-08-03T14:46:14Z (9 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master
Children:
0b7bcb8
Parents:
09737cc
Message:

rcu: Prints a warning if a thread exits while in an rcu read section.

File:
1 edited

Legend:

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

    r09737cc rfbe17545  
    10281028                        interrupts_restore(ipl);
    10291029                }
     1030
     1031                printf("Bug: thread (id %" PRIu64 " \"%s\") exited while in RCU read"
     1032                        " section.\n", THREAD->tid, THREAD->name);
    10301033        }
    10311034}
     
    14521455        ASSERT(THREAD->state == Exiting);
    14531456        ASSERT(PREEMPTION_DISABLED || interrupts_disabled());
     1457       
    14541458        /*
    14551459         * The thread forgot to exit its reader critical section.
     
    14611465                THREAD->rcu.nesting_cnt = 1;
    14621466                read_unlock_impl(&THREAD->rcu.nesting_cnt);
     1467
     1468                printf("Bug: thread (id %" PRIu64 " \"%s\") exited while in RCU read"
     1469                        " section.\n", THREAD->tid, THREAD->name);
    14631470        }
    14641471}
Note: See TracChangeset for help on using the changeset viewer.