Fix for bug reported by Gennadiy Nerubayev <parakie@gmail.com>. In some cases, e...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 20 Feb 2009 18:04:11 +0000 (18:04 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 20 Feb 2009 18:04:11 +0000 (18:04 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@678 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_vdisk.c

index 418cf3e..d7e5813 100644 (file)
@@ -2338,7 +2338,7 @@ static inline void blockio_check_finish(struct scst_blockio_work *blockio_work)
        if (atomic_dec_and_test(&blockio_work->bios_inflight)) {
                blockio_work->cmd->completed = 1;
                blockio_work->cmd->scst_cmd_done(blockio_work->cmd,
-                       SCST_CMD_STATE_DEFAULT, SCST_CONTEXT_DIRECT_ATOMIC);
+                       SCST_CMD_STATE_DEFAULT, scst_estimate_context());
                kmem_cache_free(blockio_work_cachep, blockio_work);
        }
        return;