zram: avoid lockdep splat by revalidate_disk
Sasha reported lockdep warning  introduced by .
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.
 zram: revalidate disk after capacity change
Fixes 2e32baea46ce ("zram: revalidate disk after capacity change").
Signed-off-by: Minchan Kim <firstname.lastname@example.org>
Reported-by: Sasha Levin <email@example.com>
Cc: "Alexander E. Patrakov" <firstname.lastname@example.org>
Cc: Nitin Gupta <email@example.com>
Cc: Jerome Marchand <firstname.lastname@example.org>
Cc: Sergey Senozhatsky <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
1 file changed