Skip to contentSkip to conversation

add back the missing ->slave_destroy call

PATCH New Christoph Hellwig 1 participant 1 message Sep 21, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add back the missing ->slave_destroy call

Looks like the merge error still isn't fixed..

drivers/scsi/scsi_sysfs.c +2 -0
@@ -410,6 +410,8 @@
 	if (class) {
 		down_write(&class->subsys.rwsem);
 		set_bit(SDEV_DEL, &sdev->sdev_state);
+		if (sdev->host->hostt->slave_destroy)
+			sdev->host->hostt->slave_destroy(sdev);
 		if (atomic_read(&sdev->access_count))
 			device_del(&sdev->sdev_gendev);
 		up_write(&class->subsys.rwsem);