[Devel] [PATCH RH9] push_backup: Do not take write lock on statistics
Kirill Tkhai
ktkhai at virtuozzo.com
Mon Sep 27 19:25:57 MSK 2021
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