Changes in v3: As per review comments from Lukas Wunner <lukas@xxxxxxxxx>, squashed 3 commits to single commit. Without this build breaks. Also clubbed set and clear function for is_added bits to a single assign function. This optimizes code and reduce LoC. Removed one wrongly added blank line in pci.c Changes in v2: To avoid race condition while updating is_added and is_busmaster bits, is_added is moved to a private flag variable. is_added updation is handled in atomic manner also. Hari Vyas (1): PCI: Data corruption happening due to race condition arch/powerpc/kernel/pci-common.c | 4 +++- arch/powerpc/platforms/powernv/pci-ioda.c | 3 ++- arch/powerpc/platforms/pseries/setup.c | 3 ++- drivers/pci/bus.c | 6 +++--- drivers/pci/hotplug/acpiphp_glue.c | 2 +- drivers/pci/pci.h | 11 +++++++++++ drivers/pci/probe.c | 4 ++-- drivers/pci/remove.c | 5 +++-- include/linux/pci.h | 1 - 9 files changed, 27 insertions(+), 12 deletions(-) -- 1.9.1