]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
zram: remove workqueue for freeing removed pending slot
authorMinchan Kim <minchan@kernel.org>
Wed, 15 Jan 2014 05:56:12 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Jan 2014 05:54:04 +0000 (16:54 +1100)
commit878ae96587731706a64746fe457079dab7f9e0ea
tree4fc3f1c15246907226a86ea9a9141ac28c08ad40
parent8b00718fe902bf325adf3517f1e5f86f02cec59b
zram: remove workqueue for freeing removed pending slot

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