LWN: Comments on "Per-vector software-interrupt masking" https://lwn.net/Articles/779738/ This is a special feed containing comments posted to the individual LWN article titled "Per-vector software-interrupt masking". en-us Sun, 05 Oct 2025 04:54:27 +0000 Sun, 05 Oct 2025 04:54:27 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Per-vector software-interrupt masking https://lwn.net/Articles/780017/ https://lwn.net/Articles/780017/ chantecode <div class="FormattedComment"> That wouldn't be easy to do. It could easily miss out some subtleties, callback mazes, things hidden behind macros. Careful reviews plus some help from runtime analysis with lockdep seem to me the most reliable approach. But you have a point: we may not be able to test all the code we need to convert. The coverage is huge.<br> </div> Mon, 18 Feb 2019 02:43:36 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/780008/ https://lwn.net/Articles/780008/ marcH <div class="FormattedComment"> Sounds cool but I suspect PJ was hoping for some kind of *static* analysis finding all instances without having to run the corresponding code.<br> </div> Sun, 17 Feb 2019 17:24:02 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/779984/ https://lwn.net/Articles/779984/ viro <div class="FormattedComment"> "Bottom half" is an old term, and it had nothing to do with high-priority vs. low-priority interrupts. Top half of (kernel/driver/networking/etc.) consists of the process-synchronous parts; bottom half is everything async.<br> <p> Hardware interrupts certainly belong in the latter. So do software interrupts. If anything, top half is *easier* to interrupt or preempt; the opposite of high-priority hwints.<br> <p> Linux originally had all bottom-half work done in hardware interrupt handlers. Mechanism for doing bottom-half stuff outside of those had been added circa 0.98, when the first networking patchset went in. Got labelled as "bh", without clear opposition to IRQ handlers... Eventually, they've got renamed^Wreplaced with somewhat less sucky analogue called softirq.<br> <p> You'd probably have to ask Linus to find out what was the rationale for naming conventions, but I suspect that it was something along the lines of "mechanism for doing bottom-half stuff outside of hardware interrupts - those we already have a term for"...<br> </div> Sat, 16 Feb 2019 16:01:30 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/779969/ https://lwn.net/Articles/779969/ unixbhaskar <div class="FormattedComment"> Cool !! looks promising and useful.<br> </div> Sat, 16 Feb 2019 03:36:45 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/779967/ https://lwn.net/Articles/779967/ chantecode <div class="FormattedComment"> Little correction: hrtimer softirq have been reintroduced since<br> "hrtimer: Implement support for softirq based hrtimers" 5da70160462e80b0ab8a6960cdd0cdd476907523<br> <p> We should remove the comment saying it's obsolete.<br> </div> Sat, 16 Feb 2019 01:26:55 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/779966/ https://lwn.net/Articles/779966/ chantecode <div class="FormattedComment"> Sure, just rename a spin_lock_bh(lock) to spin_lock(lock) and lockdep should complain about which vector it<br> has seen the lock used on.<br> </div> Sat, 16 Feb 2019 00:14:28 +0000 Per-vector software-interrupt masking https://lwn.net/Articles/779961/ https://lwn.net/Articles/779961/ pj <div class="FormattedComment"> I feel like some kind of code analysis could determine what the mask _could_ or maybe _should_ be. But maybe I'm too optimistic.<br> </div> Fri, 15 Feb 2019 21:31:30 +0000