zram: remove workqueue for freeing removed pending slot
authorMinchan Kim <minchan@kernel.org>
Thu, 30 Jan 2014 23:46:04 +0000 (15:46 -0800)
committerAlex Shi <alex.shi@linaro.org>
Mon, 11 May 2015 11:34:04 +0000 (19:34 +0800)
commitfa5b73b76279cd7e88743b4b8ec2fa61478d6776
treece28bd7456d9ec050d4800c6d6f4c1b9fe08a54d
parent76b3c1eb150766da298e3c68074dbd1401f22a7c
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 <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>
(cherry picked from commit f614a9f48dedd2b80d1dc8bae8094842fcdb39dd)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h