Re: [PATCH] uio/gen-pci: don't enable interrupts in ISR

From: Sebastian Andrzej Siewior
Date: Wed Aug 10 2011 - 04:33:36 EST


Michael S. Tsirkin wrote:
Let's assume we start with e.g. io enable bit cleared.


user kernel
read config |
set io enable |
| interrupt | read + set interrupt mask
write config back |
write



We end up with io enable bit cleared. Locking around rmw
that we have fixes this race.

Okay, forgot about the SMP case, sorry.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/