BACKPORT: zram: remove waitqueue for IO done
authorMinchan Kim <minchan@kernel.org>
Fri, 24 Feb 2017 22:56:47 +0000 (14:56 -0800)
committerMichael Benedict <michaelbt@live.com>
Fri, 30 Aug 2019 07:40:59 +0000 (17:40 +1000)
commit13e3322b3ccc3d8f9a0121096e791aaf18f828a7
tree5085f90c72e9dffb83c8178059f0778ff9167f4b
parent6ee4f0cc0e53e70a969208729fb982d3e0b3544d
BACKPORT: zram: remove waitqueue for IO done

zram_reset_device() waits for ongoing writepage pages to be completed by
zram->refcount logic.  However, it's pointless because before the reset,
we prevent further opening of zram by zram->claim and flush all of
pending IO by fsync_bdev so there should be no pending IO at the
zram_reset_device().

So let's remove that code which is even broken due to the lack of
wake_up elsewhere.

Link: http://lkml.kernel.org/r/1485145031-11661-1-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit a09759acaacf6cf738e1bc6c66d41485c87fd371)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I97170fb576be7baae63f82334af0dd5e91b16763
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h