Martin Wilck 55ca38b425 scsi: hpsa: cleanup sas_phy structures in sysfs when unloading
I am resubmitting this patch on behalf of Martin Wilck with his
permission.

The original patch can be found here:
https://www.spinics.net/lists/linux-scsi/msg102083.html

This patch did not help until Hannes's
commit 9441284fbc39 ("scsi-fixup-kernel-warning-during-rmmod")
was applied to the kernel.

--------------------------------------
Original patch description from Martin:
--------------------------------------

When the hpsa module is unloaded using rmmod, dangling
symlinks remain under /sys/class/sas_phy. Fix this by
calling sas_phy_delete() rather than sas_phy_free (which,
according to comments, should not be called for PHYs that
have been set up successfully, anyway).

Tested-by: Don Brace <don.brace@microsemi.com>
Reviewed-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin Wilck <mwilck@suse.de>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-25 04:55:04 -04:00
..
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-08-25 17:21:11 -04:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2017-08-24 22:29:06 -04:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2015-11-09 16:32:14 -08:00
2017-09-05 08:18:42 -04:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2016-01-27 20:36:10 +08:00
2017-09-13 10:47:14 -07:00
2016-01-27 20:36:10 +08:00
2017-08-25 17:08:08 -04:00
2014-07-17 22:07:35 +02:00
2016-11-28 15:51:31 -05:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-05-16 08:44:15 -03:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:39 +02:00
2014-11-12 11:15:57 +01:00
2017-08-08 11:49:51 -04:00
2015-11-18 11:59:09 -05:00
2017-04-26 18:32:29 -04:00