From: Vasu Dev Date: Fri, 7 May 2010 22:19:03 +0000 (-0700) Subject: [SCSI] fcoe: fix fcoe module ref counting X-Git-Tag: v2.6.35-rc1~470^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15af974dcb22914f29aeb9a9cac5879b0dc3860e;p=pandora-kernel.git [SCSI] fcoe: fix fcoe module ref counting Currently fcoe module ref count is used for tracking active fcoe instances, it means each fcoe instance create increments the count while destroy dec the count. The dec is done only if fcoe instance is destroyed from /sysfs but not if destroyed due to NETDEV_UNREGISTER event. So this patch moves only module_put doing dec to common fcoe_if_destroy function, so that dec would occur on ever fcoe instance destroy. Signed-off-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed