Merge branch 'mkp-fixes' into fixes

This commit is contained in:
James Bottomley
2015-12-03 09:32:33 -08:00
19 ha cambiato i file con 126 aggiunte e 59 eliminazioni

Vedi File

@@ -1102,6 +1102,14 @@ void __scsi_remove_device(struct scsi_device *sdev)
{
struct device *dev = &sdev->sdev_gendev;
/*
* This cleanup path is not reentrant and while it is impossible
* to get a new reference with scsi_device_get() someone can still
* hold a previously acquired one.
*/
if (sdev->sdev_state == SDEV_DEL)
return;
if (sdev->is_visible) {
if (scsi_device_set_state(sdev, SDEV_CANCEL) != 0)
return;