- Fix for memory allocation for scst_user and locally handled commands
[mirror/scst/.git] / iscsi-scst / kernel / iscsi.c
index 4fea97e..4ddfc4b 100644 (file)
@@ -302,7 +302,7 @@ void cmnd_done(struct iscsi_cmnd *cmnd)
                        case ISCSI_CMD_STATE_PROCESSED:
                                TRACE_DBG("cmd %p PROCESSED", cmnd);
                                scst_tgt_cmd_done(cmnd->scst_cmd,
-                                       SCST_CONTEXT_DIRECT);
+                                       SCST_CONTEXT_DIRECT_ATOMIC);
                                break;
 
                        case ISCSI_CMD_STATE_AFTER_PREPROC: