lkml.org 
[lkml]   [2010]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectDocumentation/credentials.txt
    Hi,

    In the section 'ACCESSING ANOTHER TASK'S CREDENTIALS', the file
    Documentation/credentials.txt says:

    > A function need not get RCU read lock to use __task_cred() if it is holding a
    > spinlock at the time as this implicitly holds the RCU read lock.

    AIUI, that is not actually right any more, is it? A spinlock does not
    suffice as it does not necessarily imply an RCU read-side critical section
    (anymore). Of course the spinlock specifically protecting updates would
    suffice, but that's not what this is saying.

    Am I way off base?

    thanks,
    -serge


    \
     
     \ /
      Last update: 2010-04-24 01:57    [W:0.020 / U:120.816 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site