Skip to contentSkip to conversation

cluster/gfs-kernel/src/dlm plock.c

Cluster-devel [email protected] 1 participant 1 message Sep 15, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: adas at sourceware.org 2006-09-15 17:42:49

Modified files:
gfs-kernel/src/dlm: plock.c

Log message:
fix for bz 206590. F_UNLCK was returning -ENOENT when it didn't find plocks associated with the given inode. Should return 0 now.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/dlm/plock.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.12.2.2&r2=1.12.2.3

gfs-kernel/src/dlm/Attic/plock.c +4 -1
@@ -1012,8 +1012,11 @@
 	log_debug("en punlock %x,%"PRIx64"", name->ln_type, name->ln_number);
 
 	error = get_resource(dlm, name, NO_CREATE, &r);
-	if (error)
+	if (error) {
+		if (error == -ENOENT)
+			error = 0;
 		goto out;
+	}
 
 	down(&r->sema);