diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-10-19 13:13:53 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-19 18:32:28 +0300 |
commit | 0669d2b265d0f6f9e16f1abbf5c5d2e22b219a6b (patch) | |
tree | 6be6035e5b2230562ba0958969194486392bb32e /block | |
parent | db073272700fce69a9c41b27c62d0003dbb66488 (diff) | |
download | linux-0669d2b265d0f6f9e16f1abbf5c5d2e22b219a6b.tar.xz |
zram: Fix __zram_bvec_{read,write}() locking order
Mikhail reported a lockdep spat detailing how __zram_bvec_read() and
__zram_bvec_write() use zstrm->lock and zspage->lock in opposite order.
Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions