Commit b4a42213 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen

scsi: megaraid_sas: add print in device removal path

Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarKashyap Desai <kashyap.desai@broadcom.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent def0eab3
...@@ -7383,6 +7383,13 @@ megasas_sysfs_set_dbg_lvl(struct device_driver *dd, const char *buf, size_t coun ...@@ -7383,6 +7383,13 @@ megasas_sysfs_set_dbg_lvl(struct device_driver *dd, const char *buf, size_t coun
static DRIVER_ATTR(dbg_lvl, S_IRUGO|S_IWUSR, megasas_sysfs_show_dbg_lvl, static DRIVER_ATTR(dbg_lvl, S_IRUGO|S_IWUSR, megasas_sysfs_show_dbg_lvl,
megasas_sysfs_set_dbg_lvl); megasas_sysfs_set_dbg_lvl);
static inline void megasas_remove_scsi_device(struct scsi_device *sdev)
{
sdev_printk(KERN_INFO, sdev, "SCSI device is removed\n");
scsi_remove_device(sdev);
scsi_device_put(sdev);
}
static void static void
megasas_aen_polling(struct work_struct *work) megasas_aen_polling(struct work_struct *work)
{ {
...@@ -7487,10 +7494,8 @@ megasas_aen_polling(struct work_struct *work) ...@@ -7487,10 +7494,8 @@ megasas_aen_polling(struct work_struct *work)
else else
scsi_device_put(sdev1); scsi_device_put(sdev1);
} else { } else {
if (sdev1) { if (sdev1)
scsi_remove_device(sdev1); megasas_remove_scsi_device(sdev1);
scsi_device_put(sdev1);
}
} }
} }
} }
...@@ -7507,10 +7512,8 @@ megasas_aen_polling(struct work_struct *work) ...@@ -7507,10 +7512,8 @@ megasas_aen_polling(struct work_struct *work)
else else
scsi_device_put(sdev1); scsi_device_put(sdev1);
} else { } else {
if (sdev1) { if (sdev1)
scsi_remove_device(sdev1); megasas_remove_scsi_device(sdev1);
scsi_device_put(sdev1);
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment