lvm-devel.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Git][lvmteam/lvm2][main] vgchange: acquire an exclusive VG lock for refresh
@ 2023-08-30 20:49 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2023-08-30 20:49 UTC (permalink / raw)
  To: lvm-devel



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 <wangzhiqiang95 at huawei.com>

- - - - -


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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20230830/35ee4dc7/attachment-0001.htm>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-30 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 20:49 [Git][lvmteam/lvm2][main] vgchange: acquire an exclusive VG lock for refresh David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).