fuse kio: fix timer setup so it actually delays ireq

Submitted by Anton Nefedov on Nov. 23, 2018, 12:41 p.m.

Details

Message ID 20181123124112.109025-1-anton.nefedov@virtuozzo.com
State New
Series "fuse kio: fix timer setup so it actually delays ireq"
Headers show

Commit Message

Anton Nefedov Nov. 23, 2018, 12:41 p.m.
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)