[Devel] [PATCH RHEL8 COMMIT] push_backup: Do not take write lock on statistics
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Sep 28 19:19:43 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.14
------>
commit 34467c01297ff35cf8a613706bd1529c3a0fc8e1
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Tue Sep 28 19:19:43 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