Merge branch 'mkp-fixes' into fixes
This commit is contained in:
@@ -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;
|
||||
|
Fai riferimento in un nuovo problema
Block a user