ehea: Fix memory hotplug handling
authorThomas Klein <tklein@de.ibm.com>
Fri, 20 Feb 2009 08:42:01 +0000 (00:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2009 08:42:01 +0000 (00:42 -0800)
Added missing set_bit() to disable data transfer when a memchange
notification is handled

Signed-off-by: Thomas Klein <tklein@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ehea/ehea.h
drivers/net/ehea/ehea_main.c

index 656cf1b8d32b57f3b7c32a552a9f17202a73560e..029631c58f0c2a9976811e44058f995a7749eaf3 100644 (file)
@@ -40,7 +40,7 @@
 #include <asm/io.h>
 
 #define DRV_NAME       "ehea"
-#define DRV_VERSION    "EHEA_0098"
+#define DRV_VERSION    "EHEA_0099"
 
 /* eHEA capability flags */
 #define DLPAR_PORT_ADD_REM 1
index 958dacbb49741caffd8545c96248ec402eb69c59..40c34bfe2cfa35f2eb961875a7a97c6bb58970de 100644 (file)
@@ -3517,12 +3517,14 @@ static int ehea_mem_notifier(struct notifier_block *nb,
                /* Readd canceled memory block */
        case MEM_ONLINE:
                ehea_info("memory is going online");
+               set_bit(__EHEA_STOP_XFER, &ehea_driver_flags);
                if (ehea_add_sect_bmap(arg->start_pfn, arg->nr_pages))
                        return NOTIFY_BAD;
                ehea_rereg_mrs(NULL);
                break;
        case MEM_GOING_OFFLINE:
                ehea_info("memory is going offline");
+               set_bit(__EHEA_STOP_XFER, &ehea_driver_flags);
                if (ehea_rem_sect_bmap(arg->start_pfn, arg->nr_pages))
                        return NOTIFY_BAD;
                ehea_rereg_mrs(NULL);