From: Alan Stern Date: Thu, 18 Mar 2010 19:39:30 +0000 (-0400) Subject: [SCSI] fix race in scsi_target_reap X-Git-Tag: v2.6.35-rc1~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e8894ae5157796dd69249c56062042d02a431d;p=pandora-kernel.git [SCSI] fix race in scsi_target_reap This patch (as1357) fixes a race in SCSI target allocation and release. Putting a target in the STARGET_DEL state isn't protected by the host lock, so an old target structure could be reused by a new device even though it's about to be deleted. The cure is to change the state while still holding the host lock. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed