[Devel] [PATCH RHEL COMMIT] push_backup: Do not take write lock on statistics

Konstantin Khorenko khorenko at virtuozzo.com
Tue Sep 28 15:00:59 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit 708371387ca23d7380d850ea987c4c0a894b46a2
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Tue Sep 28 15:00:59 2021 +0300

    push_backup: Do not take write lock on statistics
    
    It's overkill.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-push-backup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm-push-backup.c b/drivers/md/dm-push-backup.c
index 16e8cf27211f..75f080fe34cf 100644
--- a/drivers/md/dm-push-backup.c
+++ b/drivers/md/dm-push-backup.c
@@ -332,7 +332,8 @@ static void pb_release_clone(struct request *clone,
 static bool msg_wants_down_read(const char *cmd)
 {
 	if (!strcmp(cmd, "push_backup_read") ||
-	    !strcmp(cmd, "push_backup_write"))
+	    !strcmp(cmd, "push_backup_write") ||
+	    !strcmp(cmd, "push_backup_statistics"))
 		return true;
 
 	return false;


More information about the Devel mailing list