aacraid: rename check_reset
Subsystems (2)
PATCH 1/17 aacraid: rename check_reset
From: Andrew Morton <[email protected]>
Too generic, clashes with ISDN.
---
drivers/scsi/aacraid/aachba.c | 8 ++++---- drivers/scsi/aacraid/aacraid.h | 2 +- drivers/scsi/aacraid/commsup.c | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-)
drivers/scsi/aacraid/aachba.c renamed from drivers/scsi/aacraid/aachba.c~aacraid-rename-check_reset +4 -4
@@ -177,9 +177,9 @@ int check_interval = 24 * 60 * 60;module_param (check_interval, int,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (check_interval,"Interval in seconds between adapter health checks." ); -int check_reset =1 ; -module_param (check_reset, int,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (check_reset,"If adapter fails health check, reset the adapter." ); +int aacraid_check_reset =1 ; +module_param_named (check_reset, aacraid_check_reset, int,S_IRUGO |S_IWUSR ); +MODULE_PARM_DESC (aacraid_check_reset,"If adapter fails health check, reset the adapter." );int expose_physicals =-1 ;module_param (expose_physicals, int,S_IRUGO |S_IWUSR );
@@ -1211,7 +1211,7 @@ int aac_get_adapter_info(struct aac_dev* (int )sizeof (dev->supplement_adapter_info.VpdInfo.Tsid), dev->supplement_adapter_info.VpdInfo.Tsid); } -if (!check_reset || +if (!aacraid_check_reset || (dev->supplement_adapter_info.SupportedOptions2 &le32_to_cpu (AAC_OPTION_IGNORE_RESET ))) { printk(KERN_INFO "%s%d: Reset Adapter Ignored\n",
drivers/scsi/aacraid/aacraid.h renamed from drivers/scsi/aacraid/aacraid.h~aacraid-rename-check_reset +1 -1
@@ -1857,4 +1857,4 @@ extern int aac_reset_devices;extern int aac_commit;extern int update_interval;extern int check_interval; -extern int check_reset; +extern int aacraid_check_reset;
drivers/scsi/aacraid/commsup.c renamed from drivers/scsi/aacraid/commsup.c~aacraid-rename-check_reset +3 -2
@@ -1370,8 +1370,9 @@ int aac_check_health(struct aac_dev * aaprintk (KERN_ERR "%s: Host adapter BLINK LED 0x%x\n" , aac->name, BlinkLED); -if (!check_reset || (aac->supplement_adapter_info.SupportedOptions2 & -le32_to_cpu (AAC_OPTION_IGNORE_RESET ))) +if (!aacraid_check_reset || + (aac->supplement_adapter_info.SupportedOptions2 & +le32_to_cpu (AAC_OPTION_IGNORE_RESET ))) goto out; host = aac->scsi_host_ptr;if (aac->thread->pid != current->pid)
_
ACK (well, I'd prefer aac_check_reset over aacraid_check_reset, but no matter).
Sincerely -- Mark Salyzyn
Quoted 88 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, July 09, 2007 3:00 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; AACRAID
Subject: [patch 01/17] aacraid: renamecheck_resetFrom: Andrew Morton <[email protected]>
Too generic, clashes with ISDN.
Cc Mark Salyzyn <[email protected]>Cc James Bottomley <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/scsi/aacraid/aachba.c | 8 ++++---- drivers/scsi/aacraid/aacraid.h | 2 +- drivers/scsi/aacraid/commsup.c | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-)diff -puN
drivers/scsi/aacraid/aachba.c~aacraid-rename-check_resetdrivers/scsi/aacraid/aachba.cdrivers/scsi/aacraid/aachba.c renamed from drivers/scsi/aacraid/aachba.c~aacraid-rename-check_reset +3
-3@@ -177,9 +177,9 @@ int check_interval = 24 * 60 * 60;module_param (check_interval, int,S_IRUGO |S_IWUSR ); MODULE_PARM_DESC(check_interval, "Interval in seconds between adapter health checks."); -int check_reset =1 ; -module_param (check_reset, int,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC(check_reset, "If adapter fails health check, reset the adapter."); +int aacraid_check_reset =1 ; +module_param_named (check_reset, aacraid_check_reset, int,S_IRUGO |S_IWUSR ); +MODULE_PARM_DESC(aacraid_check_reset, "If adapter failshealth check, reset the adapter.");
int
expose_physicals= -1;module_param(expose_physicals, int, S_IRUGO|S_IWUSR);drivers/scsi/aacraid/aachba.c renamed from drivers/scsi/aacraid/aachba.c~aacraid-rename-check_reset +1
-1@@ -1211,7 +1211,7 @@ int aac_get_adapter_info(struct aac_dev* (int )sizeof (dev->supplement_adapter_info.VpdInfo.Tsid), dev->supplement_adapter_info.VpdInfo.Tsid); } -if (!check_reset || +if (!aacraid_check_reset || (dev->supplement_adapter_info.SupportedOptions2 &le32_to_cpu (AAC_OPTION_IGNORE_RESET ))) {printk(KERN_INFO "%s%d: Reset Adapter
Ignored\n",
diff -puNdrivers/scsi/aacraid/aacraid.h~aacraid-rename-check_resetdrivers/scsi/aacraid/aacraid.hdrivers/scsi/aacraid/aacraid.h renamed from drivers/scsi/aacraid/aacraid.h~aacraid-rename-check_reset +1
-1@@ -1857,4 +1857,4 @@ extern int aac_reset_devices;extern int aac_commit;extern int update_interval;extern int check_interval; -extern int check_reset; +extern int aacraid_check_reset;diff -puN
drivers/scsi/aacraid/commsup.c~aacraid-rename-check_resetdrivers/scsi/aacraid/commsup.cdrivers/scsi/aacraid/commsup.c renamed from drivers/scsi/aacraid/commsup.c~aacraid-rename-check_reset +0
-1@@ -1370,8 +1370,9 @@ int aac_check_health(struct aac_dev * aaprintk (KERN_ERR "%s: Host adapter BLINK LED 0x%x\n" , aac->name, BlinkLED); - if (!check_reset ||(
aac->supplement_adapter_info.SupportedOptions2&drivers/scsi/aacraid/commsup.c renamed from drivers/scsi/aacraid/commsup.c~aacraid-rename-check_reset +3
-1- le32_to_cpu(AAC_OPTION_IGNORE_RESET))) +if (!aacraid_check_reset || + (aac->supplement_adapter_info.SupportedOptions2 & +le32_to_cpu (AAC_OPTION_IGNORE_RESET ))) goto out; host = aac->scsi_host_ptr;if (aac->thread->pid != current->pid)_
Quoted 1 line · Mark
ACK
Thanks.
Quoted 2 lines
(well, I'd prefer
aac_check_resetoveraacraid_check_reset, but no matter).
Will fix and resend.