]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
aoe: describe the behavior of the "err" character device
authorEd Cashin <ecashin@coraid.com>
Sat, 3 Nov 2012 00:43:08 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:36 +0000 (15:15 +1100)
Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoechr.c

index ed57a890c6431ce882c84486481967c2103f1724..2bf6273e67791127a68c7b4a2e398ac5b64c10cb 100644 (file)
@@ -39,6 +39,11 @@ struct ErrMsg {
 };
 
 static DEFINE_MUTEX(aoechr_mutex);
+
+/* A ring buffer of error messages, to be read through
+ * "/dev/etherd/err".  When no messages are present,
+ * readers will block waiting for messages to appear.
+ */
 static struct ErrMsg emsgs[NMSG];
 static int emsgs_head_idx, emsgs_tail_idx;
 static struct completion emsgs_comp;