* [PATCH 20/24] jrcu: bugfix: process all tokens
@ 2011-03-24 17:48 Joe Korty
0 siblings, 0 replies; only message in thread
From: Joe Korty @ 2011-03-24 17:48 UTC (permalink / raw)
To: paulmck
Cc: fweisbec, peterz, laijs, mathieu.desnoyers, dhowells,
loic.minier, dhaval.giani, tglx, josh, houston.jim, andi,
linux-kernel
jrcu: process all tokens written to debugfs file rcudata,
not just the first one.
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Index: b/kernel/jrcu.c
===================================================================
--- a/kernel/jrcu.c
+++ b/kernel/jrcu.c
@@ -659,6 +659,7 @@ static ssize_t rcu_debugfs_write(struct
if (__get_user(c, &buffer[i++]))
return -EFAULT;
+next:
/* Token extractor -- first, skip leading whitepace */
while (c && isspace(c) && i < count) {
if (__get_user(c, &buffer[i++]))
@@ -693,8 +694,7 @@ static ssize_t rcu_debugfs_write(struct
rcu_wdog_lim = wdog * USEC_PER_SEC;
} else
return -EINVAL;
-
- return count;
+ goto next;
}
static int rcu_debugfs_open(struct inode *inode, struct file *file)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-24 17:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-24 17:48 [PATCH 20/24] jrcu: bugfix: process all tokens Joe Korty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome