Skip to contentSkip to conversation

master - lockd: remove ignorelockingfailure checks

PATCH David Teigland 1 participant 1 message Jul 31, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=72f754e2bc571ada133057c5a248162dc349cf93
Commit:        72f754e2bc571ada133057c5a248162dc349cf93
Parent:        439a579aa2aaf13c2e420b6e7888dbd71d7021c0
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Jul 31 15:46:51 2015 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Jul 31 15:51:50 2015 -0500

lockd: remove ignorelockingfailure checks

These code paths were effectively unused. The checks had been added long ago without any real thought behind what they should do or be used for.

---
 lib/locking/lvmlockd.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
lib/locking/lvmlockd.c +1 -10
index 15abd54..4e85ec1 100644
@@ -1475,11 +1475,7 @@ int lockd_gl(struct cmd_context *cmd, const char *def_mode, uint32_t flags)
 		log_warn("Duplicate sanlock global locks should be corrected");
 
 	if (result < 0) {
-		if (ignorelockingfailure()) {
-			log_debug("Ignore failed locking for global lock");
-			lvmetad_validate_global_cache(cmd, 1);
-			return 1;
-		} else if (result == -EAGAIN) {
+		if (result == -EAGAIN) {
 			/*
 			 * Most of the time, retries should avoid this case.
 			 */
@@ -1770,11 +1766,6 @@ out:
 	if ((lockd_flags & LD_RF_DUP_GL_LS) && strcmp(mode, "un"))
 		log_warn("Duplicate sanlock global lock in VG %s", vg_name);
  
-	if (!ret && ignorelockingfailure()) {
-		log_debug("Ignore failed locking for VG %s", vg_name);
-		return 1;
-	}
- 
 	return ret;
 }