diff --git a/scst/include/scst.h b/scst/include/scst.h index 221fd8ceb..f510f0dd0 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -4404,11 +4404,12 @@ int scst_scsi_exec_async(struct scst_cmd *cmd, void *data, void (*done)(void *data, char *sense, int result, int resid)); #endif -void scst_write_same(struct scst_cmd *cmd); - struct scst_data_descriptor { + /* Both fields in blocks */ uint64_t sdd_lba; uint64_t sdd_len; }; +void scst_write_same(struct scst_cmd *cmd); + #endif /* __SCST_H */ diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index bb5712f4f..5b09dcfbc 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -4331,6 +4331,8 @@ static struct scst_cmd *scst_create_prepare_internal_cmd( if (res->tgt_dev != NULL) res->cpu_cmd_counter = scst_get(); + TRACE(TRACE_SCSI, "New internal cmd %p (op 0x%x)", res, res->cdb[0]); + rc = scst_pre_parse(res); sBUG_ON(rc != 0);