From: Cheng Renquan Date: Thu, 2 Apr 2009 18:55:27 +0000 (+0100) Subject: dm target: use module refcount directly X-Git-Tag: v2.6.30-rc1~230^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5642b8a61a15436231adf27b2b1bd96901b623dd;p=pandora-kernel.git dm target: use module refcount directly The tt_internal's 'use' field is superfluous: the module's refcount can do the work properly. An acceptable side-effect is that this increases the reference counts reported by 'lsmod'. Remove the superfluous test when removing a target module. [Crash possible without this on SMP - agk] Cc: stable@kernel.org Signed-off-by: Cheng Renquan Signed-off-by: Alasdair G Kergon Reviewed-by: Alasdair G Kergon Reviewed-by: Jonathan Brassow --- Reading git-diff-tree failed