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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to