Re: [PATCH] zram: Fix __zram_bvec_{read,write}() locking order
From: Minchan Kim
Date: Mon Oct 19 2020 - 10:08:36 EST
On Mon, Oct 19, 2020 at 12:13:53PM +0200, Peter Zijlstra wrote:
>
> 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@xxxxxxxxx>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@xxxxxxxxx>
Acked-by: Minchan Kim <minchan@xxxxxxxxxx>
Thanks for the fix.