@@ -50,7 +50,6 @@ struct sas_task *sas_alloc_slow_task(gfp_t flags)
task->slow_task = slow;
slow->task = task;
- timer_setup(&slow->timer, NULL, 0);
init_completion(&slow->completion);
return task;
@@ -909,7 +909,6 @@ EXPORT_SYMBOL_GPL(sas_bios_param);
void sas_task_internal_done(struct sas_task *task)
{
- del_timer(&task->slow_task->timer);
complete(&task->slow_task->completion);
}
@@ -9,8 +9,6 @@
#ifndef _LIBSAS_H_
#define _LIBSAS_H_
-
-#include <linux/timer.h>
#include <linux/pci.h>
#include <scsi/sas.h>
#include <linux/libata.h>
@@ -628,7 +626,6 @@ struct sas_task_slow {
/* standard/extra infrastructure for slow path commands (SMP and
* internal lldd commands
*/
- struct timer_list timer;
struct completion completion;
struct sas_task *task;
};
We now send every slow task through the block layer and use the timeout facility there, so delete sas_task_slow.timer . Signed-off-by: John Garry <john.garry@huawei.com> --- drivers/scsi/libsas/sas_init.c | 1 - drivers/scsi/libsas/sas_scsi_host.c | 1 - include/scsi/libsas.h | 3 --- 3 files changed, 5 deletions(-)