mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
lightnvm: pblk: fix lock order in pblk_rb_tear_down_check
[ Upstream commit486b5aac85
] In pblk_rb_tear_down_check() the spinlock functions are not called in proper order. Fixes:a4bd217
("lightnvm: physical block device (pblk) target") Signed-off-by: Igor Konopko <igor.j.konopko@intel.com> Reviewed-by: Javier González <javier@javigon.com> Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
acab21ffa8
commit
1dc93fb4fe
1 changed files with 1 additions and 1 deletions
|
@ -825,8 +825,8 @@ int pblk_rb_tear_down_check(struct pblk_rb *rb)
|
|||
}
|
||||
|
||||
out:
|
||||
spin_unlock(&rb->w_lock);
|
||||
spin_unlock_irq(&rb->s_lock);
|
||||
spin_unlock(&rb->w_lock);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue