[Devel] [PATCH RHEL7 COMMIT] fuse kio: fix timer setup so it actually delays ireq
Konstantin Khorenko
khorenko at virtuozzo.com
Sat Nov 24 18:01:00 MSK 2018
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 at 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 at virtuozzo.com>
Reviewed-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
fs/fuse/kio/pcs/pcs_req.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
More information about the Devel
mailing list