]> git.baikalelectronics.ru Git - kernel.git/commit
zsmalloc: use bit_spin_lock
authorMinchan Kim <minchan@kernel.org>
Tue, 26 Jul 2016 22:23:14 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2016 23:19:19 +0000 (16:19 -0700)
commit72db4855bd229d7ed6f0b8cd919f064ed4f4dbc3
treefc896cc89721fa4da16c0378271a791bd6b6bd33
parent78d04687c6b5df42a4b959e9a6997124e2f56f43
zsmalloc: use bit_spin_lock

Use kernel standard bit spin-lock instead of custom mess.  Even, it has
a bug which doesn't disable preemption.  The reason we don't have any
problem is that we have used it during preemption disable section by
class->lock spinlock.  So no need to go to stable.

Link: http://lkml.kernel.org/r/1464736881-24886-6-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c