On Mon, 2007-10-22 at 08:00 -0400, Steven Rostedt wrote: > -- > > On Mon, 22 Oct 2007, Peter Zijlstra wrote: > 5B> > > Index: linux-2.6/kernel/workqueue.c > > =================================================================== > > --- linux-2.6.orig/kernel/workqueue.c > > +++ linux-2.6/kernel/workqueue.c > > @@ -44,7 +44,7 @@ struct cpu_workqueue_struct { > > > > spinlock_t lock; > > > > - struct list_head worklist; > > + struct plist_head worklist; > > wait_queue_head_t more_work; > > struct work_struct *current_work; > > > > @@ -127,16 +127,19 @@ struct cpu_workqueue_struct *get_wq_data > > static void insert_work(struct cpu_workqueue_struct *cwq, > > struct work_struct *work, int tail) > > { > > + int prio = current->normal_prio; > > + > > I'm curious to why you use normal_prio here? If the task has been boosted > by some other PI method, and this task is about to sleep, why not use the > actualy current->prio? Daniel wrote this bit, but I tend to agree with him, but can't give his rationale. Mine is that worklets are typically asynchonous and thus its prio should not depend on temporal things like boosting. OTOH it would probably make sense to allow it to depend on it through the barrier constructs, but for that I have to hook the completions into the PI chain. Something that needs more thought.
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [RFC/PATCH 2/3] rt: PI-workqueue support
- From: Daniel Walker <[email protected]>
- Re: [RFC/PATCH 2/3] rt: PI-workqueue support
- References:
- [RFC/PATCH 0/3] rt: workqueue PI support
- From: Peter Zijlstra <[email protected]>
- [RFC/PATCH 2/3] rt: PI-workqueue support
- From: Peter Zijlstra <[email protected]>
- Re: [RFC/PATCH 2/3] rt: PI-workqueue support
- From: Steven Rostedt <[email protected]>
- [RFC/PATCH 0/3] rt: workqueue PI support
- Prev by Date: Re: [PATCH] unlock before bug returns
- Next by Date: Re: [2.6 patch] fix CONFIG_TUNER_TEA5761=m
- Previous by thread: Re: [RFC/PATCH 2/3] rt: PI-workqueue support
- Next by thread: Re: [RFC/PATCH 2/3] rt: PI-workqueue support
- Index(es):