From ab9478776dfd6322499d83ecba6dd2898b70b9e3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 25 May 2012 18:52:02 +0000 Subject: [PATCH] Cleanups git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4325 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 5 +++-- scst/src/scst_lib.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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);