Files
linux/drivers
Minchan Kim 767df69376 UPSTREAM: zram: revalidate disk under init_lock
Commit b4c5c60920 ("zram: avoid lockdep splat by revalidate_disk")
moved revalidate_disk call out of init_lock to avoid lockdep
false-positive splat.  However, commit 08eee69fcf ("zram: remove
init_lock in zram_make_request") removed init_lock in IO path so there
is no worry about lockdep splat.  So, let's restore it.

This patch is needed to set BDI_CAP_STABLE_WRITES atomically in next
patch.

Fixes: da9556a236 ("zram: user per-cpu compression streams")
Link: http://lkml.kernel.org/r/1482366980-3782-3-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Hyeoncheol Lee <cheol.lee@lge.com>
Cc: <yjay.kim@lge.com>
Cc: Sangseok Lee <sangseok.lee@lge.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: <stable@vger.kernel.org> [4.7+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit e7ccfc4ccb)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: Iebb6f694e46a797f8ce34029857c01c0c71086c7
2018-08-23 12:00:17 -07:00
..
2018-08-06 16:24:36 +02:00
2018-07-22 14:25:52 +02:00
2018-08-15 18:20:41 +02:00
2018-07-03 18:23:34 +02:00
2018-05-30 13:25:24 +02:00
2018-06-16 09:54:26 +02:00
2018-08-06 19:12:19 +02:00
2018-08-06 19:12:19 +02:00
2018-02-25 11:03:46 +01:00
2018-02-25 11:03:51 +01:00
2018-08-06 19:12:19 +02:00
2018-05-30 13:25:24 +02:00
2018-08-22 07:48:38 +02:00
2018-08-06 19:12:19 +02:00
2018-07-17 12:15:52 +02:00
2018-05-30 13:25:24 +02:00
2018-08-06 19:12:19 +02:00
2018-08-15 18:20:41 +02:00
2018-03-22 09:57:28 +01:00
2018-07-03 18:23:34 +02:00
2018-03-22 09:57:28 +01:00
2018-03-25 10:51:55 +02:00
2018-07-25 10:18:17 +02:00
2018-08-06 19:12:19 +02:00
2018-08-15 18:20:41 +02:00
2018-07-11 16:24:21 +02:00
2018-08-22 08:08:40 +02:00
2018-08-22 08:08:40 +02:00
2018-07-03 18:23:34 +02:00
2018-07-03 18:23:34 +02:00
2017-12-02 06:53:27 +00:00
2018-02-26 09:24:57 +01:00