diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2006-10-30 18:18:50 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-15 13:27:50 -0500 |
commit | 79a5eb609b74e7b3638861c41b98eafa74920a1f (patch) | |
tree | 741a6fc22589b991d05ceaa755cc05577efe08b2 /include/scsi | |
parent | f456393e195e0aa16029985f63cd93b601a0d315 (diff) |
[SCSI] libsas: add sas_abort_task
This patch adds an external function, sas_abort_task, to enable LLDDs
to abort sas_tasks. It also adds a work_struct so that the actual
work of aborting a task can be shifted from tasklet context (in the
LLDD) onto the scsi_host's workqueue.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libsas.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 7bf2e8b9903c..a1fc20a47c50 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -528,6 +528,8 @@ struct sas_task { | |||
528 | 528 | ||
529 | void *lldd_task; /* for use by LLDDs */ | 529 | void *lldd_task; /* for use by LLDDs */ |
530 | void *uldd_task; | 530 | void *uldd_task; |
531 | |||
532 | struct work_struct abort_work; | ||
531 | }; | 533 | }; |
532 | 534 | ||
533 | 535 | ||
@@ -627,4 +629,6 @@ void sas_unregister_dev(struct domain_device *); | |||
627 | 629 | ||
628 | void sas_init_dev(struct domain_device *); | 630 | void sas_init_dev(struct domain_device *); |
629 | 631 | ||
632 | void sas_task_abort(struct sas_task *task); | ||
633 | |||
630 | #endif /* _SASLIB_H_ */ | 634 | #endif /* _SASLIB_H_ */ |