]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: disable scsi_transport_fc registration in target mode
authorAlexei Potashnik <alexei@purestorage.com>
Tue, 14 Jul 2015 20:00:47 +0000 (16:00 -0400)
committerBrian Maly <brian.maly@oracle.com>
Thu, 2 Nov 2017 18:14:13 +0000 (14:14 -0400)
commit01fbc00e31334cbf745bb32aac6461deda7069b7
tree07f0d1348a6fd2baf28508f9b3e10e2d6556ca24
parent09f0637fb1bde3b188f8c315ad9ce553cf2ca01d
qla2xxx: disable scsi_transport_fc registration in target mode

Orabug: 2684419726923029

There are multiple reasons for disabling this:

1. It provides no functional benefit. We pretty much only get a few more
sysfs entries for each port, but all that information is already
available from /sys/kernel/debug/target/qla-session-X

2. It already only works in private-loop mode. By disabling we'll be
getting more uniform behavior with fabric mode.

3. It creates complications for the new PLOGI handling mechanism:
scsi_transport_fc port deletion timer could race with new session
from initiator and cause logout after successful login.

Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: Alexei Potashnik <alexei@purestorage.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_os.c