[PATCH] lease02: Do a lock-unlock sequence instead of lock-lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the copy&paste error.

Signed-off-by: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx>
---
 lease02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lease02.c b/lease02.c
index 6450e16..45433a4 100644
--- a/lease02.c
+++ b/lease02.c
@@ -64,7 +64,7 @@ leaseunlease(int nrlock, struct timespec *slot)
 			perror("fcntl");
 			break;
 		}
-		ret = fcntl(fd, F_SETLEASE, F_RDLCK);
+		ret = fcntl(fd, F_SETLEASE, F_UNLCK);
 		if (ret < 0) {
 			perror("fcntl");
 			break;
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux