diff options
Diffstat (limited to 'drivers/block/aoe/aoechr.c')
-rw-r--r-- | drivers/block/aoe/aoechr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c index f1124664c5c9..1bc85aa2271f 100644 --- a/drivers/block/aoe/aoechr.c +++ b/drivers/block/aoe/aoechr.c | |||
@@ -15,6 +15,7 @@ enum { | |||
15 | MINOR_DISCOVER, | 15 | MINOR_DISCOVER, |
16 | MINOR_INTERFACES, | 16 | MINOR_INTERFACES, |
17 | MINOR_REVALIDATE, | 17 | MINOR_REVALIDATE, |
18 | MINOR_FLUSH, | ||
18 | MSGSZ = 2048, | 19 | MSGSZ = 2048, |
19 | NMSG = 100, /* message backlog to retain */ | 20 | NMSG = 100, /* message backlog to retain */ |
20 | }; | 21 | }; |
@@ -43,6 +44,7 @@ static struct aoe_chardev chardevs[] = { | |||
43 | { MINOR_DISCOVER, "discover" }, | 44 | { MINOR_DISCOVER, "discover" }, |
44 | { MINOR_INTERFACES, "interfaces" }, | 45 | { MINOR_INTERFACES, "interfaces" }, |
45 | { MINOR_REVALIDATE, "revalidate" }, | 46 | { MINOR_REVALIDATE, "revalidate" }, |
47 | { MINOR_FLUSH, "flush" }, | ||
46 | }; | 48 | }; |
47 | 49 | ||
48 | static int | 50 | static int |
@@ -158,6 +160,9 @@ aoechr_write(struct file *filp, const char __user *buf, size_t cnt, loff_t *offp | |||
158 | break; | 160 | break; |
159 | case MINOR_REVALIDATE: | 161 | case MINOR_REVALIDATE: |
160 | ret = revalidate(buf, cnt); | 162 | ret = revalidate(buf, cnt); |
163 | break; | ||
164 | case MINOR_FLUSH: | ||
165 | ret = aoedev_flush(buf, cnt); | ||
161 | } | 166 | } |
162 | if (ret == 0) | 167 | if (ret == 0) |
163 | ret = cnt; | 168 | ret = cnt; |