Commit cb0b50b
module: Remove preempt_disable() from module reference counting.
The preempt_disable() section in module_put() was added in commit
e1783a2 ("module: Use this_cpu_xx to dynamically allocate counters")
while the per-CPU counter were switched to another API. The API requires
that during the RMW operation the CPU remained the same.
This counting API was later replaced with atomic_t in commit
2f35c41 ("module: Replace module_ref with atomic_t refcnt")
Since this atomic_t replacement there is no need to keep preemption
disabled while the reference counter is modified.
Remove preempt_disable() from module_put(), __module_get() and
try_module_get().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>1 parent d36f6ef commit cb0b50b
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
824 | 823 | | |
825 | 824 | | |
826 | | - | |
827 | 825 | | |
828 | 826 | | |
829 | 827 | | |
| |||
833 | 831 | | |
834 | 832 | | |
835 | 833 | | |
836 | | - | |
837 | 834 | | |
838 | 835 | | |
839 | 836 | | |
840 | 837 | | |
841 | 838 | | |
842 | 839 | | |
843 | | - | |
844 | | - | |
845 | 840 | | |
846 | 841 | | |
847 | 842 | | |
| |||
852 | 847 | | |
853 | 848 | | |
854 | 849 | | |
855 | | - | |
856 | 850 | | |
857 | 851 | | |
858 | 852 | | |
859 | | - | |
860 | 853 | | |
861 | 854 | | |
862 | 855 | | |
| |||
0 commit comments