Re: kernel 2.6.26.3 qla2xxx oopsing on Fire 280R

David Miller
2008-09-08T23:08:27Z

From: Andrew Vasquez <andrew.vasquez@qlogic.com>
Date: Mon, 8 Sep 2008 14:49:32 -0700

> Hmm... Still looking...

Look at how the driver registers the IRQ handler before the host has
been registered with the SCSI layer.

That leads to a window of time where the shost hasn't been setup
fully, yet ISRs can come in and trigger DPC thread events, such as
loop resyncs, which expect the transport area to be setup.

But it won't be setup, because scsi_add_host() hasn't finished yet.

Note that in Josip's crash log, we don't even see the

qla_printk(KERN_INFO, ha, "\n"
" QLogic Fibre Channel HBA Driver: %s\n"
" QLogic %s - %s\n"
" ISP%04X: %s @ %s hdma%c, host#=%ld, fw=%s\n",
...

message yet.

Which means that the crash occurs between qla2x00_request_irqs()
and printing that message.