[SCSI] scsi: move target_destroy call
authorMike Anderson <andmike@us.ibm.com>
Tue, 14 Mar 2006 19:18:46 +0000 (11:18 -0800)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 14 Mar 2006 20:36:00 +0000 (14:36 -0600)
commita50a5e3792a6c65f95dab547dba45608bd193404
treed402d0d9e53bb8c37a4a96f5b1d168a27cfaaaee
parent9dec70e053613c31e8feab9e14607eaaed99d77c
[SCSI] scsi: move target_destroy call

This patch moves the calling of target_destroy next to the list_del. This
closed a race being seen while doing a device add on the aic7xxx.

Signed-off-by: Mike Anderson <andmike@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c