xen: in do_softirq() sample smp_processor_id() once and for all.
Il 29 Ago 2017 4:03 PM, George Dunlap <[email protected]> ha scritto:
Quoted 34 lines · Dario Faggioli
In fact, right now, we read it at every iteration of the loop. The reason it's done like this is how context switch was handled on IA64 (see commit
ae9bfcdc, "[XEN] Various softirq cleanups" [1]).However:
1) we don't have IA64 any longer, and all the achitectures that we do support, are ok with sampling once and for all;
2) sampling at every iteration (slightly) affect performance;
3) sampling at every iteration is misleading, as it makes people believe that it is currently possible thatSCHEDULE_SOFTIRQmoves the execution flow on another CPU (and the comment, by reinforcing this belief, makes things even worse!).Therefore, let's:
- do the sampling only once, and remove the comment;
- leave anASSERT()around, so that, if context switching logic changes (in current or new arches), we will notice.[1] Some more (historical) information here:
http://old-list-archives.xenproject.org/archives/html/xen-devel/2006-06/msg01262.htmlSigned-off-by Dario Faggioli <[email protected]>Reviewed-by George Dunlap <[email protected]>---
Cc: Andrew Cooper <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Julien Grall <[email protected]>
Cc: Tim Deegan <[email protected]>
---
This has been submitted already, as a part of another series. Discussion is here:
https://lists.xen.org/archives/html/xen-devel/2017-06/msg00102.html
Quoted 8 lines
For the super lazy, Jan's latest word in that thread were these:
"I've voiced my opinion, but I don't mean to block the patch. After
all there's no active issue the change introduces."
(https://lists.xen.org/archives/html/xen-devel/2017-06/msg00797.html)Since then:
- changed "once and for all" with "only once", as requested by George (and applied his Reviewed-by, as he said I could).
The commit message, but forgot to change the title. :-)
Indeed. I focused on the body of the changelog, and didn't even recall/notice, that it was in the present in the subject line as well! :-(
Sorry,
Dario
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel