mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 22:56:32 +00:00
Avoid that unloading SCST hangs when using bcache (merge r5052 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5379 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-4
@@ -1587,8 +1587,6 @@ static void sgv_pool_destroy(struct sgv_pool *pool)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
cancel_delayed_work_sync(&pool->sgv_purge_work);
|
||||
|
||||
sgv_pool_flush(pool);
|
||||
|
||||
mutex_lock(&sgv_pools_mutex);
|
||||
@@ -1601,6 +1599,8 @@ static void sgv_pool_destroy(struct sgv_pool *pool)
|
||||
scst_sgv_sysfs_del(pool);
|
||||
#endif
|
||||
|
||||
cancel_delayed_work_sync(&pool->sgv_purge_work);
|
||||
|
||||
for (i = 0; i < pool->max_caches; i++) {
|
||||
if (pool->caches[i])
|
||||
kmem_cache_destroy(pool->caches[i]);
|
||||
@@ -1828,8 +1828,6 @@ void scst_sgv_pools_deinit(void)
|
||||
sgv_pool_destroy(sgv_norm_pool);
|
||||
sgv_pool_destroy(sgv_norm_clust_pool);
|
||||
|
||||
flush_scheduled_work();
|
||||
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user