lkml.org 
[lkml]   [2014]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] [PATCH] Pre-emption control for userspace
    Obvious bug

    | Usage model is a thread mmaps this file during initialization. It then
    | writes a 1 to the mmap'd file after it grabs the lock in its critical
    | section where it wants immunity from pre-emption.

    You need to write it first or you can be pre-empted taking the lock
    before asking for immunity.

    Presumably you could equally use something to group tasks (say a control
    group of some form) and implement voluntary pre-emption within the group
    only when in user space. Ie they only pre-empt each other by yielding but
    they can be pre-empted by other tasks outside the group ?



    \
     
     \ /
      Last update: 2014-03-05 16:01    [W:6.221 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site