]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] bnx2fc: Reorganize cleanup code between interface_cleanup and if_destory
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:41 +0000 (17:38 -0700)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:08:33 +0000 (09:08 +0800)
commita821f82861857a2a6f6c1708230cc5f82d1dc76e
treefd48cebe0cfd06e8f92b22a7b1bbe8c7ff84ac62
parentb43ab44d398fcfe209913d3dc18d3e24d36a6d5f
[SCSI] bnx2fc: Reorganize cleanup code between interface_cleanup and if_destory

Move interface specific cleanup functionality to from bnx2fc_if_destroy to
bnx2fc_interface_cleanup. Do not access interface/hba in bnx2fc_if_destroy as
by the time this function is called interface may already be destroyed. This
patch is in preparation to handle NETDEV_UNREGISTER on a vlan device.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 9be17fc43e0121e966049a323ad38a35626525c1)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c