Commit 9473ddb2 authored by Raghava Aditya Renukunta's avatar Raghava Aditya Renukunta Committed by Martin K. Petersen

scsi: aacraid: Use correct function to get ctrl health

The command thread checks the ctrl health periodically before sending
updates to the controller. The function that it uses is aac_check_health
which does more than get the health status.
Signed-off-by: default avatarRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: default avatarDavid Carroll <david.carroll@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5aa60732
...@@ -2475,7 +2475,7 @@ int aac_command_thread(void *data) ...@@ -2475,7 +2475,7 @@ int aac_command_thread(void *data)
if ((time_before(next_check_jiffies,next_jiffies)) if ((time_before(next_check_jiffies,next_jiffies))
&& ((difference = next_check_jiffies - jiffies) <= 0)) { && ((difference = next_check_jiffies - jiffies) <= 0)) {
next_check_jiffies = next_jiffies; next_check_jiffies = next_jiffies;
if (aac_check_health(dev) == 0) { if (aac_adapter_check_health(dev) == 0) {
difference = ((long)(unsigned)check_interval) difference = ((long)(unsigned)check_interval)
* HZ; * HZ;
next_check_jiffies = jiffies + difference; next_check_jiffies = jiffies + difference;
...@@ -2488,7 +2488,7 @@ int aac_command_thread(void *data) ...@@ -2488,7 +2488,7 @@ int aac_command_thread(void *data)
int ret; int ret;
/* Don't even try to talk to adapter if its sick */ /* Don't even try to talk to adapter if its sick */
ret = aac_check_health(dev); ret = aac_adapter_check_health(dev);
if (ret || !dev->queues) if (ret || !dev->queues)
break; break;
next_check_jiffies = jiffies next_check_jiffies = jiffies
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment