[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)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 9 Dec 2008 15:45:30 +0000 (09:45 -0600)
commit57458036af75c6dbb62bee04b3982e92261eddb1
tree63d1611f4f54165e1dbb2bce92fcacb7b0b045b0
parentd3acf0226debeae22d87808f8f298386bd08e391
[SCSI] ibmvstgt: move crq_queue_create to the end of initialization

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>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvstgt.c