diff options
author | Minchan Kim <[email protected]> | 2014-01-30 15:46:03 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-01-30 16:56:55 -0800 |
commit | 92967471b67163bb1654e9b7fe99449ab70a4aaa (patch) | |
tree | 440e10b86af31f9752585f2472a382d0b36611d4 /tools/perf/util/trace-event-scripting.c | |
parent | deb0bdeb2f3d6b81d37fc778316dae46b6daab56 (diff) |
zram: introduce zram->tb_lock
Currently, the zram table is protected by zram->lock but it's rather
coarse-grained lock and it makes hard for scalibility.
Let's use own rwlock instead of depending on zram->lock. This patch
adds new locking so obviously, it would make slow but this patch is just
prepartion for removing coarse-grained rw_semaphore(ie, zram->lock)
which is hurdle about zram scalability.
Final patch in this patchset series will remove the lock from read-path
and change rw_semaphore with mutex in write path. With bonus, we could
drop pending slot free mess in next patch.
Signed-off-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Tested-by: Sergey Senozhatsky <[email protected]>
Cc: Jerome Marchand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions