]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: ibmvstgt: move crq_queue_create to the end of initialization
authorBrian King <brking@linux.vnet.ibm.com>
Tue, 9 Dec 2008 11:03:50 +0000 (20:03 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Jan 2009 17:44:05 +0000 (09:44 -0800)
commitaf58ad34e8319acbd10d3404b61983ee4ae9e9bd
tree8a28384a4b3a61e4aa2eadb7cfe11080305b1325
parent437ae2fcbfc1e2d8edea897a372d37f827cdcb41
SCSI: ibmvstgt: move crq_queue_create to the end of initialization

commit 57458036af75c6dbb62bee04b3982e92261eddb1 upstream.

Calling crq_queue_create could lead to the creation of a rport. We
need to set up everything before creating a rport. This moves
crq_queue_create to the end of initialization to avoid a race which
causes an oops if lost.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reported-by: Olaf Hering <olh@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/ibmvscsi/ibmvstgt.c