[RHEL7,COMMIT] fuse kio: fix timer setup so it actually delays ireq

Submitted by Konstantin Khorenko on Nov. 24, 2018, 3:01 p.m.

Details

Message ID 201811241500.wAOF0wqg030195@finist-ce7.sw.ru
State New
Series "fuse kio: fix timer setup so it actually delays ireq"
Headers show

Commit Message

Konstantin Khorenko Nov. 24, 2018, 3:01 p.m.
The commit is pushed to "branch-rh7-3.10.0-862.20.2.vz7.73.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.20.2.vz7.73.8
------>
commit 3b40574b4452acea0c853a2f83826a0b445d941e
Author: Anton Nefedov <anton.nefedov@virtuozzo.com>
Date:   Sat Nov 24 18:00:57 2018 +0300

    fuse kio: fix timer setup so it actually delays ireq
    
    Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_req.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_req.c b/fs/fuse/kio/pcs/pcs_req.c
index f60ad025af59..38a8af57732e 100644
--- a/fs/fuse/kio/pcs/pcs_req.c
+++ b/fs/fuse/kio/pcs/pcs_req.c
@@ -78,7 +78,7 @@  void ireq_delay(struct pcs_int_request *ireq)
 	default:
 		ireq->last_delay = PCS_ERROR_DELAY;
 	}
-	mod_timer(&ireq->timer, ireq->last_delay);
+	mod_timer(&ireq->timer, jiffies + ireq->last_delay);
 }
 
 void ireq_handle_hole(struct pcs_int_request *ireq)