diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-20 21:04:45 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-02-21 21:29:38 -0500 |
commit | 4034cc68157bfa0b6622efe368488d3d3e20f4e6 (patch) | |
tree | 525106f6783eeb533df8b1e9feacd7457042d1d9 /drivers/scsi/aha1740.h | |
parent | b7e7bd34465518f3527bf47a8055f35077d40c6c (diff) |
[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 <tj@kernel.org>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aha1740.h')
0 files changed, 0 insertions, 0 deletions