[SCSI] libfcoe: clean up netdev mapping properly when the transport goes away
authorYi Zou <yi.zou@intel.com>
Fri, 1 Apr 2011 23:06:19 +0000 (16:06 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 15:20:42 +0000 (10:20 -0500)
commit69922fcd534cfc82e2d44374fa219e7c3b27c492
treeac85a2b360a140d32f5c6f4d94c2f6cc5e9d2c07
parent9c8cce8e416b3286720379b5efa1c7fa81b2ec36
[SCSI] libfcoe: clean up netdev mapping properly when the transport goes away

When rmmoving the underlying fcoe transport driver module by force when
it's attached and in use, the correspoding netdev mapping should be
cleaned up properly as well, otherwise the lookup for a given netdev
for the transport would still return non NULL pointer, causing "unable
to handle paging request" bug.

Signed-off-by: Yi Zou <yi.zou@intel.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 <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe_transport.c