diff options
author | Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com> | 2010-04-01 20:41:40 +0900 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-30 12:51:10 -0500 |
commit | bf81623542332bc2cedf3db49cbb2edb724780d2 (patch) | |
tree | 47e4b784fefd533251b58ae1c2d8c8d280242bcf /drivers/scsi/scsi_error.c | |
parent | 5a2e3995951176e1aaa63d17ae2e1d26ac99003d (diff) | |
download | kernel_samsung_smdk4412-bf81623542332bc2cedf3db49cbb2edb724780d2.zip kernel_samsung_smdk4412-bf81623542332bc2cedf3db49cbb2edb724780d2.tar.gz kernel_samsung_smdk4412-bf81623542332bc2cedf3db49cbb2edb724780d2.tar.bz2 |
[SCSI] add scsi trace core functions and put trace points
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Signed-off-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 3317597..f31d868 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -39,6 +39,8 @@ #include "scsi_logging.h" #include "scsi_transport_api.h" +#include <trace/events/scsi.h> + #define SENSE_TIMEOUT (10*HZ) /* @@ -52,6 +54,7 @@ void scsi_eh_wakeup(struct Scsi_Host *shost) { if (shost->host_busy == shost->host_failed) { + trace_scsi_eh_wakeup(shost); wake_up_process(shost->ehandler); SCSI_LOG_ERROR_RECOVERY(5, printk("Waking error handler thread\n")); @@ -127,6 +130,7 @@ enum blk_eh_timer_return scsi_times_out(struct request *req) struct scsi_cmnd *scmd = req->special; enum blk_eh_timer_return rtn = BLK_EH_NOT_HANDLED; + trace_scsi_dispatch_cmd_timeout(scmd); scsi_log_completion(scmd, TIMEOUT_ERROR); if (scmd->device->host->transportt->eh_timed_out) |