]> git.baikalelectronics.ru Git - kernel.git/commit
dm target: use module refcount directly
authorCheng Renquan <crquan@gmail.com>
Thu, 2 Apr 2009 18:55:27 +0000 (19:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 2 Apr 2009 18:55:27 +0000 (19:55 +0100)
commit263d322636d457c5f95e6d88192e87a4db96781f
tree2108366dbec955f71bc49795e3cf894d4dcd991c
parent60ac0a70b22b09c863e0acd2e8e25f08947cf0d2
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 <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>
drivers/md/dm-target.c