when the eh_strategy_handler function gets invoked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

I'm developing a USB class driver for UAS device. I have modified the
storage driver code as per my custom driver requirements. As a part of
this, I have registered to the SCSI layer through following snippet in
the storage_probe function. I have seen the code in one of the SAS
driver's implementation.

/*
 * Attach transport template to SCSI layer
 * which shall be used for executing tasks and
 * task management functions.
 */
transport_template = domain_attach_transport(&transport_functions);
if (!transport_template)
       goto BadDevice;
	
struct scsi_transport_template *
domain_attach_transport(struct domain_function_template *dft)
{
       struct scsi_transport_template *stt = attach_transport();

       if (!stt)
               return stt;

       i = to_uas_internal(stt);
       i->dft = dft;
       stt->create_work_queue = 1;
       stt->eh_timed_out = uas_scsi_timed_out;
       stt->eh_strategy_handler = uas_scsi_recover_host;

       return stt;
}

I would like to know when the eh_strategy_handler
(uas_scsi_recover_host) function gets invoked.

When I canceled the read/write operation from/to host to the device or
vice-versa. Still, the function, eh_strategy_handler
(uas_scsi_recover_host), is not invoked.

Thanks and Regards,
Madhavi M
--
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux