[SCSI] fcoe: Rearrange fcoe port and NPIV port cleanup
authorNeerav Parikh <neerav.parikh@intel.com>
Mon, 20 Jun 2011 23:59:51 +0000 (16:59 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 21:33:25 +0000 (16:33 -0500)
commitb2085a4efc1a00375b77d5cbfe73a549c9d7d65b
tree822cc056b3240e00fd485dd349081a9d8758202c
parent9b7d1613a9060b7c82ac7e8e7cbee8c2392925c2
[SCSI] fcoe: Rearrange fcoe port and NPIV port cleanup

When NPIV port destroy handler is called it does not do all the cleanup
required for the given NPIV port. This was happening as some of the
lport cleanup moved to fcoe_interface_cleanup() routine, which is not
called as part of the vport delete process.

This patch rearranges the sequence in which the fcoe_if_destory() and
fcoe_interface_cleanup() functions are being called from various places
in the code. It now matches the sequence they are constructed during the
create process for both N_Port as well as NPIV port.

Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Neerav Parikh <Neerav.Parikh@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