Skip to content
Commit 6545b60b authored by Ahmed Samy's avatar Ahmed Samy Committed by Mike Snitzer
Browse files

dm cache metadata: fix cmd_read_lock() acquiring write lock

Commit 9567366f ("dm cache metadata: fix READ_LOCK macros and
cleanup WRITE_LOCK macros") uses down_write() instead of down_read() in
cmd_read_lock(), yet up_read() is used to release the lock in
READ_UNLOCK().  Fix it.

Fixes: 9567366f

 ("dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAhmed Samy <f.fallen45@gmail.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 9567366f
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