summaryrefslogtreecommitdiff
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-12-18 04:03:26 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-18 05:15:23 +0400
commit662a889608dfabbb1b4954b172a6872a25dc8f90 (patch)
treeb6de7178528700592e91af5649f0a34e2b4d9e59 /drivers/block/aoe
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/block/aoe')
-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 ed57a890c643..2bf6273e6779 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;