]> git.neil.brown.name Git - history.git/commit
From: James.Smart@Emulex.Com
authorJames Bottomley <jejb@mulgrave.(none)>
Tue, 15 Mar 2005 12:12:11 +0000 (06:12 -0600)
committerJames Bottomley <jejb@titanic.il.steeleye.com>
Tue, 15 Mar 2005 12:12:11 +0000 (06:12 -0600)
commit5c64e94a6a835200ff475238e1a9a32b39d94c62
tree6026fbb9119cc0a37f03f57cf5edab3a24828fe7
parent3cb8085939aaa116a3aff02f6dda95c7aed1e0fc
From:  James.Smart@Emulex.Com

FC Remote Port Patch

This is the reworked patch for fc_remote ports.
It started with the "patch2" converted for scsi-misc-2.6 (and
updated for the revised midlayer scsi target implementation)
Incorporates Andrew Vasquez's updates
Adds scsi target scanning on behalf of the driver based on
addition of a per-host workq.

This patch adds support for FC Remote Ports (which may or may not
be FCP targets) to the fc transport. The attributes for the ports are
in support of HBAAPI. This patch also implements consistent scsi target
id bindings for the remote ports.

This patch also moves the dev_loss attribute from the target-level
fc_transport device to the remote port device. It also deletes the
link_down attribute. The fc_target_block and fc_target_unblock
routines have been replaced by fc_remote_port_block and
fc_remote_port_unblock. The fc_host_block/unblock functions have
been removed (unused).

A new interface has been created - fc_remove_host(), which a driver
must call immediately prior to scsi_remove_host() when unloading.
This tears down the transport, starget, and sdev devices.
The transport, which utilizes the midlayer mods to insert transport
entities between the shost and starget, results in a device tree
such as the following:

  /sys/class/fc_host/host4/device/rport-4:0-0/target4:0:0/4:0:0:0

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h