1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/locking
Zdenek Kabelac 6a8d3d7811 clvmd: avoid resending local sync commands
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:
56cab8cc03

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.
2014-03-19 00:47:58 +01:00
..
.exported_symbols Pre-release cleanups. 2009-05-21 03:04:52 +00:00
cluster_locking.c clvmd: avoid resending local sync commands 2014-03-19 00:47:58 +01:00
external_locking.c config: fixup default values for selected config settings 2014-03-06 09:49:57 +01:00
file_locking.c file_locking: use PATH_MAX for dir name 2014-03-19 00:46:28 +01:00
locking_types.h locking: Make it possible to pass down an LV to activation code. 2013-06-10 17:26:38 +02:00
locking.c locking: activate_lv_excl return correct error code 2013-11-01 13:02:13 +01:00
locking.h locking: Make it possible to pass down an LV to activation code. 2013-06-10 17:26:38 +02:00
Makefile.in Install plugins to subdirs 2010-05-06 10:07:46 +00:00
no_locking.c activation: flag temporary LVs internally 2013-10-23 14:09:37 +02:00