staging: unisys: add comment to spinlock in struct charqueue
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 5 Dec 2014 22:08:41 +0000 (17:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Jan 2015 01:30:20 +0000 (17:30 -0800)
Add a comment to the charqueue's spinlock to explain that it is a lock for the
structure.

Signed-off-by: Ken Depro <kenneth.depro@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorutil/charqueue.c

index 1ce7003..ac7acb7 100644 (file)
@@ -28,7 +28,7 @@
 struct charqueue {
        int alloc_size;
        int nslots;
-       spinlock_t lock;
+       spinlock_t lock; /* read/write lock for this structure */
        int head, tail;
        unsigned char buf[0];
 };