mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
[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>
This commit is contained in:
parent
f456393e19
commit
79a5eb609b
2 changed files with 64 additions and 0 deletions
|
@ -528,6 +528,8 @@ struct sas_task {
|
|||
|
||||
void *lldd_task; /* for use by LLDDs */
|
||||
void *uldd_task;
|
||||
|
||||
struct work_struct abort_work;
|
||||
};
|
||||
|
||||
|
||||
|
@ -627,4 +629,6 @@ void sas_unregister_dev(struct domain_device *);
|
|||
|
||||
void sas_init_dev(struct domain_device *);
|
||||
|
||||
void sas_task_abort(struct sas_task *task);
|
||||
|
||||
#endif /* _SASLIB_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue