Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5642b8a6 authored by Cheng Renquan's avatar Cheng Renquan Committed by Alasdair G Kergon
Browse files

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: default avatarCheng Renquan <crquan@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Reviewed-by: default avatarAlasdair G Kergon <agk@redhat.com>
Reviewed-by: default avatarJonathan Brassow <jbrassow@redhat.com>
parent 35bf659b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment