Minchan Kim 92967471b6 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 <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-30 16:56:55 -08:00
..
2013-11-23 22:33:52 -08:00
2013-11-23 22:33:49 -08:00
2014-01-30 16:56:55 -08:00
2013-04-09 14:13:19 -04:00
2011-08-08 11:40:15 +02:00
2013-04-09 14:13:32 -04:00
2012-03-28 18:30:03 +01:00
2014-01-30 16:56:55 -08:00
2013-06-29 12:46:45 +04:00
2014-01-30 16:56:55 -08:00
2013-11-23 22:33:49 -08:00
2013-11-23 22:33:57 -08:00
2014-01-03 10:05:34 +01:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00