zram: remove workqueue for freeing removed pending slot
authorMinchan Kim <[email protected]>
Thu, 30 Jan 2014 23:46:04 +0000 (15:46 -0800)
committerLinus Torvalds <[email protected]>
Fri, 31 Jan 2014 00:56:55 +0000 (16:56 -0800)
commitf614a9f48dedd2b80d1dc8bae8094842fcdb39dd
tree411b14762df0f6ad7261b5d6f6ad7c9bc28a2204
parent92967471b67163bb1654e9b7fe99449ab70a4aaa
zram: remove workqueue for freeing removed pending slot

Commit a0c516cbfc74 ("zram: don't grab mutex in zram_slot_free_noity")
introduced free request pending code to avoid scheduling by mutex under
spinlock and it was a mess which made code lenghty and increased
overhead.

Now, we don't need zram->lock any more to free slot so this patch
reverts it and then, tb_lock should protect it.

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]>
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h