]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] libfcoe: Remove stale fcoe-netdev entries
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 25 Feb 2011 23:03:17 +0000 (15:03 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 1 Mar 2011 00:33:46 +0000 (18:33 -0600)
commit70be6344ea1ad9110a5b422aeab47a3fbb01ba7f
treea0432b0fcd56a708f81d1d680dba264dbddc7f72
parentf4d2b2b6ea8abd0df72a31b4724522a277af6a6c
[SCSI] libfcoe: Remove stale fcoe-netdev entries

When L2 driver is unloaded, libfcoe_destroy tries to access the fcoe
transport structure matching the netdev. However, since the netdev is
unregistered by that time, it fails to do so. Hence the stale mappings
exists in the fcoe-netdev list. Handle NETDEV_UREGISTER device
notification mechanism to remove the stale fcoe-netdev mapping.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.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