Moving inband work off stack - remaing cases
Hi Philippe,
I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.
To my understanding, this is not needed for xnthread_map (to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.
Looking at xnthread_relax(), the same should apply to post_wakeup - provided it is inlined into xnthread_relax - because, again, we won't leave that function before the signal was sent, thus the work consumed.
Am I missing something?
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 10 lines · Jan Kiszka
Hi Philippe,
I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.
To my understanding, this is not needed for
xnthread_map(to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.
Correct.
Quoted 4 lines
Looking at
xnthread_relax(), the same should apply topost_wakeup- provided it is inlined intoxnthread_relax- because, again, we won't leave that function before the signal was sent, thus the work consumed.
Correct.
Quoted 2 lines
Am I missing something?
Nope.
Signature · 1 line
Philippe.
Quoted 21 lines · Philippe Gerum
Quoted 10 lines · Jan Kiszka
Hi Philippe,
I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.
To my understanding, this is not needed for
xnthread_map(to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.Correct.
Quoted 4 lines
Looking at
xnthread_relax(), the same should apply topost_wakeup- provided it is inlined intoxnthread_relax- because, again, we won't leave that function before the signal was sent, thus the work consumed.
Quoted 7 lines
Correct.
Quoted 2 lines
Am I missing something?
Nope.
Perfect.
I'm finalizing the patches to merge dovetail completely into next. With your unicore-SMP fix, we should even get a green test pipeline soon.
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux