Message ID | 20240425233517.2125142-2-bmarzins@redhat.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
Series | multipath: fix hang in flush_map_nopaths | expand |
diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index 4ce7e82f..a87abf7e 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -1043,7 +1043,7 @@ has_partmap(const char *name __attribute__((unused)), return 1; } -static int +int partmap_in_use(const char *name, void *data) { int part_count, *ret_count = (int *)data; diff --git a/libmultipath/devmapper.h b/libmultipath/devmapper.h index a7d66604..93caa2aa 100644 --- a/libmultipath/devmapper.h +++ b/libmultipath/devmapper.h @@ -57,6 +57,7 @@ enum { DM_FLUSH_BUSY, }; +int partmap_in_use(const char *name, void *data); int _dm_flush_map (const char *, int, int, int, int); int dm_flush_map_nopaths(const char * mapname, int deferred_remove); #define dm_flush_map(mapname) _dm_flush_map(mapname, 1, 0, 0, 0) diff --git a/libmultipath/libmultipath.version b/libmultipath/libmultipath.version index 724786d5..e070f296 100644 --- a/libmultipath/libmultipath.version +++ b/libmultipath/libmultipath.version @@ -141,6 +141,7 @@ global: need_io_err_check; orphan_path; parse_prkey_flags; + partmap_in_use; pathcount; path_discovery; path_get_tpgs;
A future commit will make use of this function Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> --- libmultipath/devmapper.c | 2 +- libmultipath/devmapper.h | 1 + libmultipath/libmultipath.version | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)