Skip to content

Commit 2df71b1

Browse files
Boaz Harroshjejb
authored andcommitted
[SCSI] osd_uld: Remove creation of osd_scsi class symlink
Remove the creation of the symlink from the device to it's class. On modern systems this is already created by a udev rule and would WARN on load. On old systems it is not needed, none of the current osd user-mode tools use this link. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent 8c0bacc commit 2df71b1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/scsi/osd/osd_uld.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ static int osd_probe(struct device *dev)
345345
}
346346

347347
dev_set_drvdata(oud->class_member, oud);
348-
error = sysfs_create_link(&scsi_device->sdev_gendev.kobj,
349-
&oud->class_member->kobj, osd_symlink);
350-
if (error)
351-
OSD_ERR("warning: unable to make symlink\n");
352348

353349
OSD_INFO("osd_probe %s\n", disk->disk_name);
354350
return 0;
@@ -377,8 +373,6 @@ static int osd_remove(struct device *dev)
377373
scsi_device);
378374
}
379375

380-
sysfs_remove_link(&oud->od.scsi_device->sdev_gendev.kobj, osd_symlink);
381-
382376
if (oud->class_member)
383377
device_destroy(osd_sysfs_class,
384378
MKDEV(SCSI_OSD_MAJOR, oud->minor));

0 commit comments

Comments
 (0)