OSDN Git Service

megaraid: fix irq setup process regression
authorTomas Henzl <thenzl@redhat.com>
Tue, 2 Jun 2015 10:39:46 +0000 (16:09 +0530)
committerJames Bottomley <JBottomley@Odin.com>
Sat, 13 Jun 2015 15:32:30 +0000 (08:32 -0700)
commit258c3af2b9309412d82e74b2ea87e8c140fe2072
treefc71cf065375f62f81ddc56229ca43859b78079e
parentf0284ca63ecf8bdbf76c47eb5354a6a40239320c
megaraid: fix irq setup process regression

This fixes a regression caused by commit
d3557fc8be11d25f316884581f487684f8e7dad3 megaraid_sas : Add separate function
for setting up IRQs This makes boot end with 'root does not exist' message on
certain adapters.

The bug is that the driver does not setup ints for cards without msi-x
support.  This patch fixes it, in addition to that it moves tasklet
initialisation before enable_intr, otherwise a kernel panic may occur, when an
interrupt arrives before the tasklet is ready.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/megaraid/megaraid_sas_base.c