@@ -1494,13 +1494,14 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type)
* commands are completing in the interrupt service.
*/
aac_adapter_disable_int(aac);
+ printk(KERN_INFO">>> %s [%d] Before access to aac->thread\n", __func__, __LINE__);
if (aac->thread && aac->thread->pid != current->pid) {
spin_unlock_irq(host->host_lock);
kthread_stop(aac->thread);
aac->thread = NULL;
jafo = 1;
}
-
+ printk(KERN_INFO">>> %s [%d] After access to aac->thread\n", __func__, __LINE__);
/*
* If a positive health, means in a known DEAD PANIC
* state and the adapter could be reset to `try again'.
@@ -2471,8 +2472,10 @@ int aac_command_thread(void *data)
/* Don't even try to talk to adapter if its sick */
ret = aac_adapter_check_health(dev);
- if (ret || !dev->queues)
+ if (ret || !dev->queues) {
+ printk(KERN_INFO">>> %s [%d] adapter_check_health problem. Go out...\n", __func__, __LINE__);
break;
+ }
next_check_jiffies = jiffies
+ ((long)(unsigned)check_interval)
* HZ;
@@ -2518,6 +2521,7 @@ int aac_command_thread(void *data)
if (dev->queues)
remove_wait_queue(&dev->queues->queue[HostNormCmdQueue].cmdready, &wait);
dev->aif_thread = 0;
+ printk(KERN_INFO">>> %s [%d] aac_command_thread stopped\n", __func__, __LINE__);
return 0;
}