]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Prevent probe and board_disable race
authorJoe Lawrence <joe.lawrence@stratus.com>
Tue, 26 Aug 2014 21:12:29 +0000 (17:12 -0400)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:10:01 +0000 (09:10 -0700)
commit912025afb7904201ec1b8c6b66005ea061ab2d95
treec9939898a1f8ddfdc3cbe6815d42aada3b2ee1dd
parent0fadb4bb3a167918899bcaf23889aee07d482717
qla2xxx: Prevent probe and board_disable race

The PCI register read checking introduced in commit 42df1a18e76b
("qla2xxx: Disable adapter when we encounter a PCI disconnect") is
active during driver probe. Hold off scheduling any board removal until
the driver probe has completed. This ensures that the the board_disable
work structure is initialized and more importantly, avoids racing
qla2x00_probe_one.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_os.c