device-mapper-multipath/0016-RH-dont-remove-map-on-enomem.patch
Benjamin Marzinski 5fe519f23f Add back missing patches
Add 0012-RH-update-on-show-topology.patch
Add 0013-RH-manpage-update.patch
Add 0014-RH-RHEL5-style-partitions.patch
Add 0015-RH-add-followover.patch
Add 0016-RH-dont-remove-map-on-enomem.patch
Add 0017-RH-fix-shutdown-crash.patch
Add 0018-RH-warn-on-bad-dev-loss-tmo.patch
Add 0019-RH-deprecate-uid-gid-mode.patch
Add 0020-RH-dont-remove-map-twice.patch
Add 0021-RH-validate-guid-partitions.patch
Add 0022-RH-adjust-messages.patch
Add 0023-RH-manpage-update.patch
2012-02-10 09:34:20 -06:00

19 lines
665 B
Diff

---
multipathd/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: multipath-tools-120123/multipathd/main.c
===================================================================
--- multipath-tools-120123.orig/multipathd/main.c
+++ multipath-tools-120123/multipathd/main.c
@@ -1003,7 +1003,8 @@ mpvec_garbage_collector (struct vectors
return;
vector_foreach_slot (vecs->mpvec, mpp, i) {
- if (mpp && mpp->alias && !dm_map_present(mpp->alias)) {
+ if (mpp && mpp->alias && !dm_map_present(mpp->alias) &&
+ errno != ENOMEM) {
condlog(2, "%s: remove dead map", mpp->alias);
remove_map_and_stop_waiter(mpp, vecs, 1);
i--;