From: Tejun Heo Date: Sat, 21 Feb 2009 02:04:45 +0000 (+0900) Subject: [SCSI] sd: revive sd_index_lock X-Git-Tag: v2.6.29-rc7~18^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4034cc68157bfa0b6622efe368488d3d3e20f4e6;p=pandora-kernel.git [SCSI] sd: revive sd_index_lock Commit f27bac2761cab5a2e212dea602d22457a9aa6943 which converted sd to use ida instead of idr incorrectly removed sd_index_lock around id allocation and free. idr/ida do have internal locks but they protect their free object lists not the allocation itself. The caller is responsible for that. This missing synchronization led to the same id being assigned to multiple devices leading to oops. Reported and tracked down by Stuart Hayes of Dell. Signed-off-by: Tejun Heo Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed