[PATCH 0/5] tgt: add target mode support to fc transport and qla2xxx

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

 



This patchset adds target mode support to fc transport class and
qla2xxx driver. The pathset is against scsi-misc.

The target mode support for fc transport class works in the same way
as srp transport class. fc_remote_port_{rolechg,delete} calls
scsi_tgt_it_nexus_{create,destroy} for target drivers.

This patchset includes one major change to the mid layer. srp
initiator-mode drivers don't find initiator remote ports (i.e. it
finds only target ports) so srp transport class always creates tgt's
I_T nexus when it finds an initiator remoto port. However, both
initiator-mode and target-mode fc drivers find initiator remote ports
so fc transport class needs to know which mode the driver runs in (or
a driver can run in dual mode too). That is, fc transport class
creates tgt's I_T nexus only when target-mode-enabled drivers find an
initiator remote port.

To solve the above issue, the second patch adds supported_mode and
active_mode attributes to /sys/class/sys_host/hostX/ for specifying
the mode that a lld supports and the currently activated mode. The
supported_mode attribute looks at a scsi_host_template and the
active_mode attribute looks at a scsi_host. We would add a hook to a
scsi_host_template to change the active_mode attribute
dynamically. But now there is no hook since no lld supports that
feature.
-
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