mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
6a8d3d7811
Instead of sending repeatedly LOCAL_SYNC commands to clvmds like 'lvs', rememeber the last sent commmand, and if there was no other clvmd command, drop this redundant SYNC call message. The problem has started with commit: 56cab8cc037fc4d31085705987b3a4c04d5e5938 This introduced correct synchronisation of name, when user requests to know open_count (needs to wait for udev), however it is also executed for read-only cases like 'lvs' command. For now implement very simple solution, which is only monitoring outgoing clvmd command, and when sequence of LOCAL sync names are recognized, they are skipped automatically. TODO: Future solution might move this variable info 'cmd_context' and use 'needs_sync' flag also i.e. in file locking code.