[Git][lvmteam/lvm2][main] vgchange: acquire an exclusive VG lock for refresh
"David Teigland (@teigland)" <[email protected]>
| Newsgroups | gmane.linux.lvm.devel |
|---|---|
| Message-ID | <64efab71741d2_28a85205419d@gitlab-sidekiq-low-urgency-cpu-bound-v2-7f44b8899-94fnr.mail> |
David Teigland pushed to branch main at LVM team / lvm2 Commits: 65d23a1d by wangzhiqiang at 2023-08-30T15:47:42-05:00 vgchange: acquire an exclusive VG lock for refresh Concurrent vgchange --refresh commands can lead to hung tasks in dm code. Signed-off-by: wangzhiqiang <[email protected]> - - - - - 1 changed file: - tools/vgchange.c Changes: ===================================== tools/vgchange.c ===================================== @@ -1008,7 +1008,8 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv) if (update) flags |= READ_FOR_UPDATE; - else if (arg_is_set(cmd, activate_ARG)) + else if (arg_is_set(cmd, activate_ARG) || + arg_is_set(cmd, refresh_ARG)) flags |= READ_FOR_ACTIVATE; if (!(handle = init_processing_handle(cmd, NULL))) { View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/65d23a1d75013f328e9a3a1914484514621822ef -- View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/65d23a1d75013f328e9a3a1914484514621822ef You're receiving this email because of your account on gitlab.com. -- lvm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/lvm-devel