[Devel] [PATCH RHEL7 COMMIT] vziolimit: port diff-ubc-introduce-atomic-flags-bit-field-shadow

Konstantin Khorenko khorenko at odin.com
Tue May 5 02:44:43 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 d9cd557f5d1ab0ff33d5fe2af033005887693b25
Author: Dmitry Monakhov <dmonakhov at openvz.org>
Date:   Tue May 5 13:44:43 2015 +0400

    vziolimit: port diff-ubc-introduce-atomic-flags-bit-field-shadow
    
    ubc: introduce atomic flags bit-field
    
    vziolimit's part of the patch:
    
    convert ub->dirty_exceeded, ub->ub_oom_noproc, ub->ub_manual_oom_score_adj into
    normal atomic bit flags in ub->ub_flags.
    
    Signed-off-by: Konstantin Khlebnikov <khlebnikov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
    
    ====================================
    https://jira.sw.ru/browse/PSBM-20104
    
    Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
 kernel/ve/vziolimit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/ve/vziolimit.c b/kernel/ve/vziolimit.c
index 906e32a..2cfc58f 100644
--- a/kernel/ve/vziolimit.c
+++ b/kernel/ve/vziolimit.c
@@ -143,7 +143,7 @@ static void iolimit_balance_dirty(struct iolimit *iolimit,
 	/* precharge dirty pages */
 	throttle_charge(th, (long long)dirty << PAGE_SHIFT);
 	/* set dirty_exceeded for smooth throttling */
-	ub->dirty_exceeded = 1;
+	set_bit(UB_DIRTY_EXCEEDED, &ub->ub_flags);
 	spin_unlock_irqrestore(&ub->ub_lock, flags);
 }
 



More information about the Devel mailing list