]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm target: use module refcount directly
authorCheng Renquan <crquan@gmail.com>
Fri, 3 Apr 2009 17:45:13 +0000 (17:45 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:57 +0000 (10:36 -0700)
commit3ee793df8fbfe03379fa1eb77e532a0b931a67e8
tree57ae2fbfb47adb3567834ffbb8a244b861039504
parent8068bd7e0480e6295b9e0be85a2eb57f9aba7825
dm target: use module refcount directly

upstream commit: 5642b8a61a15436231adf27b2b1bd96901b623dd

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 <crquan@gmail.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Reviewed-by: Alasdair G Kergon <agk@redhat.com>
Reviewed-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/md/dm-target.c