mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] move ->eh_strategy_handler to the transport class
Overriding the whole EH code is a per-transport, not per-host thing. Move ->eh_strategy_handler to the transport class, same as ->eh_timed_out. Downside is that scsi_host_alloc can't check for the total lack of EH anymore, but the transition period from old EH where we needed it is long gone already. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
676165a8af
commit
9227c33de8
26 changed files with 18 additions and 66 deletions
|
|
@ -140,7 +140,6 @@ struct scsi_host_template {
|
|||
*
|
||||
* Status: REQUIRED (at least one of them)
|
||||
*/
|
||||
int (* eh_strategy_handler)(struct Scsi_Host *);
|
||||
int (* eh_abort_handler)(struct scsi_cmnd *);
|
||||
int (* eh_device_reset_handler)(struct scsi_cmnd *);
|
||||
int (* eh_bus_reset_handler)(struct scsi_cmnd *);
|
||||
|
|
|
|||
|
|
@ -49,6 +49,11 @@ struct scsi_transport_template {
|
|||
*/
|
||||
unsigned int create_work_queue : 1;
|
||||
|
||||
/*
|
||||
* Allows a transport to override the default error handler.
|
||||
*/
|
||||
void (* eh_strategy_handler)(struct Scsi_Host *);
|
||||
|
||||
/*
|
||||
* This is an optional routine that allows the transport to become
|
||||
* involved when a scsi io timer fires. The return value tells the
|
||||
|
|
|
|||
Loading…
Reference in a new issue