scst: Remove scst_device.dev_unregistering again

See also:
- commit 2e386ef7c1 ("Merge branch svn-trunk")
- commit 3fc775c75a / r6589 ("EXTENDED COPY support")
- commit 6c46b1a5a0 ("scst: Remove the dev_unregistering member variable")
This commit is contained in:
Bart Van Assche
2017-02-28 20:35:51 -08:00
parent e009996237
commit 682eaed880
2 changed files with 0 additions and 11 deletions

View File

@@ -2801,14 +2801,6 @@ struct scst_device {
/* Set, if a strictly serialized cmd is waiting blocked */
unsigned int strictly_serialized_cmd_waiting:1;
/*
* Set, if this device is being unregistered. Useful to let sysfs
* attributes know when they should exit immediately to prevent
* possible deadlocks with their device unregistration waiting for
* their kobj last put.
*/
unsigned int dev_unregistering:1;
/*
* Set if ext blocking is pending. It is just shortcut for
* !list_empty(&dev->ext_blockers_list) to save a cache miss.

View File

@@ -1522,7 +1522,6 @@ out:
return res;
out_unreg:
dev->dev_unregistering = 1;
list_del(&dev->dev_list_entry);
scst_assign_dev_handler(dev, &scst_null_devtype);
goto out_pr_clear_dev;
@@ -1577,8 +1576,6 @@ void scst_unregister_virtual_device(int id)
goto out_unlock;
}
dev->dev_unregistering = 1;
scst_cm_on_dev_unregister(dev);
list_del_init(&dev->dev_list_entry);