aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001
diff options
context:
space:
mode:
authorXinHong Zhu <zxh3737@163.com>2014-02-12 22:59:38 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:22 -0400
commit09f942bd83610f60f3b00b8f942a79f402307fe6 (patch)
treefd1153aa6a9626a0abbe758903b2f158e9a46ac4 /drivers/scsi/pm8001
parentd6216c4734721900a835196309668134f83c641d (diff)
[SCSI] pm80xx: no need for tag allocation when issuing the command of unregistering device
In function pm8001_dev_gone_notify we consume a tag from bitmap resource and later don't free that tag resource, so the tag resource will never be freed. In the function we don't need to use any tag to issue command for unregistering the device . Signed-off-by: XinHong Zhu <zxh3737@163.com> Acked-by: Lindar Liu <lindar_liu@usish.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001')
-rw-r--r--drivers/scsi/pm8001/pm8001_sas.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c
index f50ac44b950e..ba3088c99bfa 100644
--- a/drivers/scsi/pm8001/pm8001_sas.c
+++ b/drivers/scsi/pm8001/pm8001_sas.c
@@ -865,13 +865,11 @@ ex_err:
865static void pm8001_dev_gone_notify(struct domain_device *dev) 865static void pm8001_dev_gone_notify(struct domain_device *dev)
866{ 866{
867 unsigned long flags = 0; 867 unsigned long flags = 0;
868 u32 tag;
869 struct pm8001_hba_info *pm8001_ha; 868 struct pm8001_hba_info *pm8001_ha;
870 struct pm8001_device *pm8001_dev = dev->lldd_dev; 869 struct pm8001_device *pm8001_dev = dev->lldd_dev;
871 870
872 pm8001_ha = pm8001_find_ha_by_dev(dev); 871 pm8001_ha = pm8001_find_ha_by_dev(dev);
873 spin_lock_irqsave(&pm8001_ha->lock, flags); 872 spin_lock_irqsave(&pm8001_ha->lock, flags);
874 pm8001_tag_alloc(pm8001_ha, &tag);
875 if (pm8001_dev) { 873 if (pm8001_dev) {
876 u32 device_id = pm8001_dev->device_id; 874 u32 device_id = pm8001_dev->device_id;
877 875