[Devel] [PATCH] fuse kio: fix timer setup so it actually delays ireq

Anton Nefedov anton.nefedov at virtuozzo.com
Fri Nov 23 15:41:12 MSK 2018


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)
-- 
2.17.1



More information about the Devel mailing list