Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 000000e

Browse files
Ingo Molnarroxell
authored andcommitted
x86/ioapic: Do not unmask io_apic when interrupt is in progress
With threaded interrupts we might see an interrupt in progress on migration. Do not unmask it when this is the case. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 30d9549 commit 000000e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kernel/apic/io_apic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,8 @@ static bool io_apic_level_ack_pending(struct irq_cfg *cfg)
18911891
static inline bool ioapic_irqd_mask(struct irq_data *data, struct irq_cfg *cfg)
18921892
{
18931893
/* If we are moving the irq we need to mask it */
1894-
if (unlikely(irqd_is_setaffinity_pending(data))) {
1894+
if (unlikely(irqd_is_setaffinity_pending(data) &&
1895+
!irqd_irq_inprogress(data))) {
18951896
mask_ioapic(cfg);
18961897
return true;
18971898
}

0 commit comments

Comments
 (0)