[RHEL7,COMMIT] fuse/kio_pcs/pcs_map: fix process_flush_req lock leakage

Submitted by Konstantin Khorenko on April 27, 2018, 9:09 a.m.

Details

Message ID 201804270909.w3R991mR031513@finist_ce7.work
State New
Series "fuse/kio_pcs/pcs_map: fix process_flush_req lock leakage"
Headers show

Commit Message

Konstantin Khorenko April 27, 2018, 9:09 a.m.
The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.47.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.46.7
------>
commit deceb9e019bd79b8285bb1956927b7312688e160
Author: Dmitry Monakhov <dmonakhov@openvz.org>
Date:   Fri Apr 27 12:09:01 2018 +0300

    fuse/kio_pcs/pcs_map: fix process_flush_req lock leakage
    
    https://pmc.acronis.com/browse/VSTOR-8116
    Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 fs/fuse/kio/pcs/pcs_map.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index 705743056462..085f49fd0219 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -2694,6 +2694,7 @@  void process_flush_req(struct pcs_int_request *ireq)
 	return;
 
 done:
+	spin_unlock(&m->lock);
 	if (pcs_if_error(&ireq->error)) {
 		TRACE("oops, delete me %d", ireq->error.value);
 		pcs_clear_error(&ireq->error);