All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/locking locking.h
Date: 24 Apr 2012 12:17:13 -0000	[thread overview]
Message-ID: <20120424121713.31199.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2012-04-24 12:17:13

Modified files:
	lib/locking    : locking.h 

Log message:
	Add some lock comments

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.h.diff?cvsroot=lvm2&r1=1.75&r2=1.76

--- LVM2/lib/locking/locking.h	2012/02/27 09:52:37	1.75
+++ LVM2/lib/locking/locking.h	2012/04/24 12:17:12	1.76
@@ -67,13 +67,13 @@
  */
 #define LCK_TYPE_MASK	0x00000007U
 
-#define LCK_NULL	0x00000000U	/* LCK$_NLMODE */
-#define LCK_READ	0x00000001U	/* LCK$_CRMODE */
+#define LCK_NULL	0x00000000U	/* LCK$_NLMODE (Deactivate) */
+#define LCK_READ	0x00000001U	/* LCK$_CRMODE (Activate) */
 					/* LCK$_CWMODE */
 #define LCK_PREAD       0x00000003U	/* LCK$_PRMODE */
-#define LCK_WRITE	0x00000004U	/* LCK$_PWMODE */
-#define LCK_EXCL	0x00000005U	/* LCK$_EXMODE */
-#define LCK_UNLOCK      0x00000006U	/* This is ours */
+#define LCK_WRITE	0x00000004U	/* LCK$_PWMODE (Suspend) */
+#define LCK_EXCL	0x00000005U	/* LCK$_EXMODE (Exclusive) */
+#define LCK_UNLOCK      0x00000006U	/* This is ours (Resume) */
 
 /*
  * Lock flags - these numbers are the same as DLM



             reply	other threads:[~2012-04-24 12:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 12:17 zkabelac [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-27  9:52 LVM2/lib/locking locking.h zkabelac
2011-12-08 18:09 agk
2011-12-03 11:36 mbroz
2011-12-03 11:34 mbroz
2010-05-19  1:49 agk
2009-10-01 14:15 ccaulfield
2009-07-24 18:26 agk
2007-11-15  2:55 agk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120424121713.31199.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.