zram: get rid of lockdep warning
authorMinchan Kim <minchan@kernel.org>
Tue, 5 Feb 2013 23:48:53 +0000 (08:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 02:01:24 +0000 (18:01 -0800)
commit8b3cc3edb745cbc131560d19e3f32d81c07454b1
tree365846c74da2920d5b94453c48144ad35a7677ec
parent152bce6bdd6e6866ff83166ac75177d001c4360d
zram: get rid of lockdep warning

Lockdep complains about recursive deadlock of zram->init_lock.
[1] made it false positive because we can't request IO to zram
before setting disksize. Anyway, we should shut lockdep up to
avoid many reporting from user.

[1] : zram: force disksize setting before using zram

Acked-by: Jerome Marchand <jmarchan@redhat.com>
Acked-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c
drivers/staging/zram/zram_drv.h
drivers/staging/zram/zram_sysfs.c