Implement iSCSI dev_loss_tmo

51 views
Skip to first unread message

Vivek S

unread,
Jul 9, 2011, 4:00:31 PM7/9/11
to open-...@googlegroups.com
Hi,

In the TODO list newly added to the open-iscsi repo, kernel item 2 says that the dev_loss_tmo handler needs to be made common.
Does this mean that we need to move this into the scsi layer by adding it to scsi_transport_template structure instead of
iscsi_cls_session structure (patch submitted at thread
http://groups.google.com/group/open-iscsi/msg/031510ab4cecccfd?dmode=source indicates so) ?

Kindly correct me if I am wrong.

Thank you


Mike Christie

unread,
Jul 11, 2011, 4:05:59 PM7/11/11
to open-...@googlegroups.com, Vivek S
On 07/09/2011 03:00 PM, Vivek S wrote:
> Hi,
>
> In the TODO list newly added to the open-iscsi repo, kernel item 2 says
> that the dev_loss_tmo handler needs to be made common.
> Does this mean that we need to move this into the scsi layer by adding
> it to scsi_transport_template structure instead of
> iscsi_cls_session structure (patch submitted at thread
> http://groups.google.com/group/open-iscsi/msg/031510ab4cecccfd?dmode=source
> indicates so) ?
>

Exactly. So we want to add a callback function similar to how their is a
callback function for the scanning (scsi_host_template->user_scan).

We probably then want to think of a way to have the transport class or
some common code (maybe in scsi_lib.c) add a sysfs file (dev_loss_tmo)
to the transport object that the new callback is managing.

Reply all
Reply to author
Forward
0 new messages