projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e97663
)
aoe: describe the behavior of the "err" character device
author
Ed Cashin
<ecashin@coraid.com>
Tue, 18 Dec 2012 00:03:26 +0000
(16:03 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:23 +0000
(17:15 -0800)
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>
drivers/block/aoe/aoechr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/aoe/aoechr.c
b/drivers/block/aoe/aoechr.c
index ed57a890c6431ce882c84486481967c2103f1724..2bf6273e67791127a68c7b4a2e398ac5b64c10cb 100644
(file)
--- 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;