From: Aaro Koskinen Date: Tue, 14 Apr 2009 20:47:00 +0000 (-0500) Subject: [SCSI] sym53c8xx_2: slave_alloc/destroy safety (2.6.27.5) X-Git-Tag: v2.6.31-rc1~365^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8584566cc9cdaf067dbc12132792887a521da9;p=pandora-kernel.git [SCSI] sym53c8xx_2: slave_alloc/destroy safety (2.6.27.5) Make the sym53c8xx_2 driver slave_alloc/destroy less unsafe. References to the destroyed LCB are cleared from the target structure (instead of leaving a dangling pointer), and when the last LCB for the target is destroyed the reference to the upper layer target data is cleared. The host lock is used to prevent a race with the interrupt handler. Also user commands are prevented for targets with all LCBs destroyed. Signed-off-by: Aaro Koskinen Tested-by: Tony Battersby Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed