diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2012-03-14 21:20:06 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-28 14:58:11 +0100 |
commit | 0ee1d714c285aabaadf7495bf5820114ad0959b1 (patch) | |
tree | a5213395c887cb568943987c9b4aca1c18b8614f /drivers/scsi/ipr.h | |
parent | 7d7311c44567cd2001ca318e4de64b753d9d35f8 (diff) | |
download | blackbird-op-linux-0ee1d714c285aabaadf7495bf5820114ad0959b1.tar.gz blackbird-op-linux-0ee1d714c285aabaadf7495bf5820114ad0959b1.zip |
[SCSI] ipr: Fix target id allocation re-use problem
For the latest ipr SAS adapters, target id's are a completely
logical construct that are managed in the ipr driver. This fixes
an issue that can arise if a device is deleted via sysfs. If
a new device is then physically added, it will use the previous
device's target id. If the host is then rescanned, the device
that had been deleted, since it is using the same target id as
the new device is using, will never be found, resulting in
a missing device. Fix this by only freeing the target id
only if the resource is actually gone.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
0 files changed, 0 insertions, 0 deletions