[SCSI] libfc: defer releasing master lport until complete fcoe interface cleanuped up
authorVasu Dev <vasu.dev@intel.com>
Fri, 20 Apr 2012 19:16:38 +0000 (12:16 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 07:59:25 +0000 (08:59 +0100)
commit3cab4468fd0a4b3c9f22a380e4318c17b6c202d6
tree554adf8c808629f1e01f0c08a0b70759b8e6adb2
parent061446a159c5a0ec7047f9979866ffa7e0587b25
[SCSI] libfc: defer releasing master lport until complete fcoe interface cleanuped up

The fcoe controller has back references, therefore defer
releasing master lport which gets freed along scsi_host_put
and then free it once fcoe interface is fully cleaned.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe.c