puskyer/android_kernel_samsung_aries — pull request #7 by puskyer (2014-08-14 23:42:29+00:00)
Title: zram: avoid lockdep splat by revalidate_disk

Sasha reported lockdep warning [1] introduced by [2].

It could be fixed by doing disk revalidation out of the init_lock. It's
okay because disk capacity change is protected by init_lock so that
revalidate_disk always sees up-to-date value so there is no race.

[1] https://lkml.org/lkml/2014/7/3/735
[2] zram: revalidate disk after capacity change

Fixes 2e32baea46ce ("zram: revalidate disk after capacity change").

Signed-off-by: Minchan Kim
Reported-by: Sasha Levin
Cc: "Alexander E. Patrakov"
Cc: Nitin Gupta
Cc: Jerome Marchand
Cc: Sergey Senozhatsky
CC:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
Signed-off-by: Humberto Borba

Change-Id: Ie0f3f3046b6256e3239344dc84721850b25079e2