Commit dd17dd35 authored by Igor Konopko's avatar Igor Konopko Committed by Greg Kroah-Hartman

lightnvm: pblk: fix lock order in pblk_rb_tear_down_check

[ Upstream commit 486b5aac ]

In pblk_rb_tear_down_check() the spinlock functions are not
called in proper order.

Fixes: a4bd217b ("lightnvm: physical block device (pblk) target")
Signed-off-by: default avatarIgor Konopko <igor.j.konopko@intel.com>
Reviewed-by: default avatarJavier González <javier@javigon.com>
Reviewed-by: default avatarHans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: default avatarMatias Bjørling <mb@lightnvm.io>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9dd97160
...@@ -784,8 +784,8 @@ int pblk_rb_tear_down_check(struct pblk_rb *rb) ...@@ -784,8 +784,8 @@ int pblk_rb_tear_down_check(struct pblk_rb *rb)
} }
out: out:
spin_unlock(&rb->w_lock);
spin_unlock_irq(&rb->s_lock); spin_unlock_irq(&rb->s_lock);
spin_unlock(&rb->w_lock);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment