diff options
author | Thomas Klein <tklein@de.ibm.com> | 2009-02-20 03:42:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-20 03:42:01 -0500 |
commit | 3876732c12cd2b9896e8c3e86fad142112e93569 (patch) | |
tree | 34a7d2da6fcdc240d127b6c15d55282d6ff450a1 /drivers/net/ehea | |
parent | 376801172ade1ab80efdd42dba859282400885ed (diff) |
ehea: Fix memory hotplug handling
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>
Diffstat (limited to 'drivers/net/ehea')
-rw-r--r-- | drivers/net/ehea/ehea.h | 2 | ||||
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index 656cf1b8d32b..029631c58f0c 100644 --- a/drivers/net/ehea/ehea.h +++ b/drivers/net/ehea/ehea.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <asm/io.h> | 40 | #include <asm/io.h> |
41 | 41 | ||
42 | #define DRV_NAME "ehea" | 42 | #define DRV_NAME "ehea" |
43 | #define DRV_VERSION "EHEA_0098" | 43 | #define DRV_VERSION "EHEA_0099" |
44 | 44 | ||
45 | /* eHEA capability flags */ | 45 | /* eHEA capability flags */ |
46 | #define DLPAR_PORT_ADD_REM 1 | 46 | #define DLPAR_PORT_ADD_REM 1 |
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 958dacbb4974..40c34bfe2cfa 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -3517,12 +3517,14 @@ static int ehea_mem_notifier(struct notifier_block *nb, | |||
3517 | /* Readd canceled memory block */ | 3517 | /* Readd canceled memory block */ |
3518 | case MEM_ONLINE: | 3518 | case MEM_ONLINE: |
3519 | ehea_info("memory is going online"); | 3519 | ehea_info("memory is going online"); |
3520 | set_bit(__EHEA_STOP_XFER, &ehea_driver_flags); | ||
3520 | if (ehea_add_sect_bmap(arg->start_pfn, arg->nr_pages)) | 3521 | if (ehea_add_sect_bmap(arg->start_pfn, arg->nr_pages)) |
3521 | return NOTIFY_BAD; | 3522 | return NOTIFY_BAD; |
3522 | ehea_rereg_mrs(NULL); | 3523 | ehea_rereg_mrs(NULL); |
3523 | break; | 3524 | break; |
3524 | case MEM_GOING_OFFLINE: | 3525 | case MEM_GOING_OFFLINE: |
3525 | ehea_info("memory is going offline"); | 3526 | ehea_info("memory is going offline"); |
3527 | set_bit(__EHEA_STOP_XFER, &ehea_driver_flags); | ||
3526 | if (ehea_rem_sect_bmap(arg->start_pfn, arg->nr_pages)) | 3528 | if (ehea_rem_sect_bmap(arg->start_pfn, arg->nr_pages)) |
3527 | return NOTIFY_BAD; | 3529 | return NOTIFY_BAD; |
3528 | ehea_rereg_mrs(NULL); | 3530 | ehea_rereg_mrs(NULL); |