Flush device's SGV cache in dev_user_unjam_dev() for faster cleanup.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 16:35:19 +0000 (16:35 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 16:35:19 +0000 (16:35 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1246 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_user.c

index feafd1a..49860bd 100644 (file)
@@ -2212,6 +2212,9 @@ static int dev_user_unjam_dev(struct scst_user_dev *dev)
 
        TRACE_MGMT_DBG("Unjamming dev %p", dev);
 
+       sgv_pool_flush(dev->pool);
+       sgv_pool_flush(dev->pool_clust);
+
        spin_lock_irq(&dev->cmd_lists.cmd_list_lock);
 
 repeat: