]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd008883851f05c9e61ff67f4609630d355b62497
tree822cc056b3240e00fd485dd349081a9d8758202c
parent54670ac4289383f7695516aee981e7ca2f279925
[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