1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib
Zdenek Kabelac 77e3610e1a Speedup consequent activation calls
Stop calling fs_unlock() from lv_de/activate().
Start using internal lvm fs cookie for dm_tree.
Stop directly calling dm_udev_wait() and
dm_tree_set/get_cookie() from activate code -
it's now called through fs_unlock() function.

Add lvm_do_fs_unlock()

Call fs_unlock() when unlocking vg where implicit unlock solves the
problem also for cluster - thus no extra command for clustering
environment is required - only lvm_do_fs_unlock() function is added
to call lvm's fs_unlock() while holding lvm_lock mutex in clvmd.

Add fs_unlock() also to set_lv() so the command waits until devices
are ready for regular open (i.e. wiping its begining).

Move fs_unlock() prototype to activation.h to keep fs.h private
in lib/activate dir and not expose other functions from this header.
2011-01-10 14:02:30 +00:00
..
activate Speedup consequent activation calls 2011-01-10 14:02:30 +00:00
cache Cache config_tree 2011-01-10 13:15:57 +00:00
commands Fix memory leak in filter creation error path 2011-01-06 15:29:24 +00:00
config Add checks for allocation errors in config node clonning. 2010-12-20 13:53:10 +00:00
datastruct Some const cleanups 2010-12-20 13:19:13 +00:00
device Use const char* const * for dm_regex_create() 2010-12-20 13:23:11 +00:00
display Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00
error Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
filters Fix memory leak in filter creation error path 2011-01-06 15:29:24 +00:00
format1 Remove unused variable label 2010-12-20 14:06:33 +00:00
format_pool Add internal error if pointer is uninitialized 2010-12-20 14:20:52 +00:00
format_text Change import_vg_from_buffer to use config_tree 2011-01-10 13:13:42 +00:00
freeseg Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
label Add dm_zalloc and use it and dm_pool_zalloc throughout. 2010-09-30 21:06:50 +00:00
locking Speedup consequent activation calls 2011-01-10 14:02:30 +00:00
log Remove bufused for calculation 2010-10-26 08:53:25 +00:00
metadata Speedup consequent activation calls 2011-01-10 14:02:30 +00:00
mirror Remove unused variable mirr_state and its assignment 2011-01-05 12:27:56 +00:00
misc Using Fedora 14's autoreconf. 2011-01-07 14:38:34 +00:00
mm Add more strict const pointers around config tree 2010-12-20 13:12:55 +00:00
replicator Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
report Return PERCENT_INVALID for error case 2011-01-05 12:33:51 +00:00
snapshot Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
striped Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
unknown Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
uuid Add id_format_and_copy() common function and call from _uuid_disp. 2010-09-30 14:07:33 +00:00
zero Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00