[Cluster-devel] cluster/gfs-kernel/src/dlm plock.c

adas at sourceware.org adas at sourceware.org
Fri Sep 15 17:42:50 UTC 2006


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

--- cluster/gfs-kernel/src/dlm/Attic/plock.c	2006/09/14 16:00:48	1.12.2.2
+++ cluster/gfs-kernel/src/dlm/Attic/plock.c	2006/09/15 17:42:49	1.12.2.3
@@ -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);
 




More information about the Cluster-devel mailing list