diff --git a/scst/src/scst_copy_mgr.c b/scst/src/scst_copy_mgr.c index 44a750126..b991f74a5 100644 --- a/scst/src/scst_copy_mgr.c +++ b/scst/src/scst_copy_mgr.c @@ -2727,12 +2727,10 @@ out: return res; } -/* scst_mutex supposed to be held and activities suspended */ void scst_cm_on_dev_unregister(struct scst_device *dev) { TRACE_ENTRY(); - scst_assert_activity_suspended(); lockdep_assert_held(&scst_mutex); scst_cm_dev_unregister(dev, true); diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 44fbade8d..6f2f2173b 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1444,7 +1444,6 @@ void scst_unregister_virtual_device(int id, TRACE_ENTRY(); - scst_suspend_activity(SCST_SUSPEND_TIMEOUT_UNLIMITED); mutex_lock(&scst_mutex); list_for_each_entry(d, &scst_dev_list, dev_list_entry) { @@ -1475,7 +1474,6 @@ void scst_unregister_virtual_device(int id, } mutex_unlock(&scst_mutex); - scst_resume_activity(); scst_dev_sysfs_del(dev);