Re: FUSYN and RT

From: Daniel Walker (dwalker_at_mvista.com)
Date: 04/13/05

  • Next message: William Weston: "BUGs in 2.6.12-rc2-RT-V0.7.45-01"
    To: Esben Nielsen <simlo@phys.au.dk>
    Date:	12 Apr 2005 15:15:59 -0700
    
    

    On Tue, 2005-04-12 at 13:29, Esben Nielsen wrote:

    > You basicly need 3 priorities:
    > 1) Actual: task->prio
    > 2) Base prio with no RT locks taken: task->static_prio
    > 3) Base prio with no Fusyn locks taken: task->??
    >
    > So no, you will not need the same API, at all :-) Fusyn manipulates
    > task->static_prio and only task->prio when no RT lock is taken. When the
    > first RT-lock is taken/released it manipulates task->prio only. A release
    > of a Fusyn will manipulate task->static_prio as well as task->prio.

    mutex_setprio() , I don't know if you could call that an API but that's
    what I was talking about.. They should both use that. I think it would
    be better if the RT mutex (and fusyn) didn't depend on a field in the
    task_struct to retain the old priority. That would make it easier ..

    This goes back to the assumption that the locking isn't intermingled
    once you get into the kernel . The RT mutex can safely save the owner
    priority with out a Fusyn jumping in and changing it and the other way
    around..

    Daniel

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: William Weston: "BUGs in 2.6.12-rc2-RT-V0.7.45-01"

    Relevant Pages

    • Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U8
      ... > Mutexes layered on existing semaphores seems convenient ... I.e. the task with the highest priority get ... Then on top of that you build your mutex. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
      ... A realtime system with tasks A and B, A has an RT scheduling priority of ... B runs and ends up blocked on the mutex. ... priority producer task and it was never allowed to block. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Xterm Hangs - Possible scheduler defect?
      ... > Ingo Oeser wrote: ... >> his and all the waiters on it, until it releases his mutex, where he regains ... >> its old priority after release of mutex. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Xterm Hangs - Possible scheduler defect?
      ... Ingo Oeser wrote: ... > You would need to change the priority of task 1 until it releases the ... > his and all the waiters on it, until it releases his mutex, where he regains ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] Document futex PI design
      ... +Unbounded Priority Inversion ... +to use a resource that a lower priority process has (a mutex for example), ... +waiter - A waiter is a struct that is stored on the stack of a blocked ... +The mutex structure contains a pointer to the owner of the mutex. ...
      (Linux-Kernel)