[Devel] [PATCH RHEL7 COMMIT] cfq: add virtinfo hook for vziolimits

Konstantin Khorenko khorenko at odin.com
Tue May 5 02:44:45 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.4.9
------>
commit 82a17ebd8f7404b3bbc0b3a277930974efdec3d2
Author: Dmitry Monakhov <dmonakhov at openvz.org>
Date:   Tue May 5 13:44:45 2015 +0400

    cfq: add virtinfo hook for vziolimits
    
    https://jira.sw.ru/browse/PSBM-20104
    
    Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
 block/cfq-iosched.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index c410752..2937c58 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -14,6 +14,8 @@
 #include <linux/rbtree.h>
 #include <linux/ioprio.h>
 #include <linux/blktrace_api.h>
+#include <bc/io_acct.h>
+
 #include "blk.h"
 #include "blk-cgroup.h"
 
@@ -3922,6 +3924,8 @@ static void cfq_insert_request(struct request_queue *q, struct request *rq)
 	cfq_add_rq_rb(rq);
 	cfqg_stats_update_io_add(RQ_CFQG(rq), cfqd->serving_group,
 				 rq->cmd_flags);
+
+	virtinfo_notifier_call_irq(VITYPE_IO, VIRTINFO_IO_OP_ACCOUNT, NULL);
 	cfq_rq_enqueued(cfqd, cfqq, rq);
 }
 



More information about the Devel mailing list