From 5639b92d95ef184d7a1db9ea908ce69207ba469f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 31 Aug 2012 16:18:59 -0700 Subject: [PATCH] Improve documentation for when tasks may be cancelled --- include/scsi-lowlevel.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/scsi-lowlevel.h b/include/scsi-lowlevel.h index 0fdb3ad..de9b9ba 100644 --- a/include/scsi-lowlevel.h +++ b/include/scsi-lowlevel.h @@ -276,7 +276,12 @@ struct scsi_task { struct scsi_data_buffer *in_buffers; }; +/* This function will free a scsi task structure. + You may NOT cancel a task until the callback has been invoked + and the command has completed on the iscsi layer. +*/ EXTERN void scsi_free_scsi_task(struct scsi_task *task); + EXTERN void scsi_set_task_private_ptr(struct scsi_task *task, void *ptr); EXTERN void *scsi_get_task_private_ptr(struct scsi_task *task);