summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-12-18 00:03:26 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-18 01:15:23 (GMT)
commit662a889608dfabbb1b4954b172a6872a25dc8f90 (patch)
treeb6de7178528700592e91af5649f0a34e2b4d9e59 /drivers
parent6e9766317fd51a33a32c65d2b76a6bde3227bbbd (diff)
downloadlinux-662a889608dfabbb1b4954b172a6872a25dc8f90.tar.xz
aoe: describe the behavior of the "err" character device
Signed-off-by: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/aoe/aoechr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c
index ed57a89..2bf6273 100644
--- a/drivers/block/aoe/aoechr.c
+++ b/drivers/block/aoe/aoechr.c
@@ -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;