From: Mike Christie <michaelc@xxxxxxxxxxx> This adds a callout to the transport template to handle bsg request timeouts. It is needed by the scsi bsg lib, so that transport classes can set their own timeout handlers. Signed-off-by: Mike Christie <michaelc@xxxxxxxxxxx> --- include/scsi/scsi_transport.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/scsi/scsi_transport.h b/include/scsi/scsi_transport.h index 0de32cd..fdaee9e 100644 --- a/include/scsi/scsi_transport.h +++ b/include/scsi/scsi_transport.h @@ -68,6 +68,14 @@ struct scsi_transport_template { enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd *); /* + * This is an optional routine that allows the transport to become + * involved when a bsg req timer fires. 0 should be returned on + * success and a -Exyz code should be returned on a error. + * If -EAGAIN is returned we give the request more time. + */ + int (*eh_bsg_timed_out)(struct request *); + + /* * Used as callback for the completion of i_t_nexus request * for target drivers. */ -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html