mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
scst: Remove scst_device.dev_unregistering again
See also: - commit2e386ef7c1("Merge branch svn-trunk") - commit3fc775c75a/ r6589 ("EXTENDED COPY support") - commit6c46b1a5a0("scst: Remove the dev_unregistering member variable")
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user