]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: Extending lport's roles for target if there is a registered target.
authorKiran Patil <kiran.patil@intel.com>
Sat, 29 Jan 2011 00:05:22 +0000 (16:05 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:08:22 +0000 (11:08 -0600)
commit6c18d80a7ec69a85f7dce483e522bc5321084ccd
tree50f99072fc7fbdcc7c317b52154ca47b0bd1b963
parent5f67c11dadd89d3e7213365ceb9be4b5aae5b51c
[SCSI] libfc: Extending lport's roles for target if there is a registered target.

Problem:

From initaitor machine, when queried role of target (other end of connection),
it is "initiator", hence SCSI-ml doesn't send any LUN Inquiry commands.

Fix:

If there is a registered target for FC_TYPE_FCP, extend lport's params
(capability) to be target as well, By default lport params are
INITIATOR only. Having this fix, caused initiator to send SCSI LUN
inquiry command to target.

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_libfc.c
drivers/scsi/libfc/fc_libfc.h
drivers/scsi/libfc/fc_lport.c