projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab24c7
)
drivers/char/random.c:write_pool() cond_resched() needed
author
Matt Mackall
<mpm@selenic.com>
Wed, 6 Feb 2008 09:37:20 +0000
(
01:37
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:06 +0000
(10:41 -0800)
Reduce latency for large writes to /dev/[u]random
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Sami Farin <safari-kernel@safari.iki.fi>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c
patch
|
blob
|
history
diff --git
a/drivers/char/random.c
b/drivers/char/random.c
index
c511a83
..
f43c89f
100644
(file)
--- a/
drivers/char/random.c
+++ b/
drivers/char/random.c
@@
-1039,6
+1039,7
@@
write_pool(struct entropy_store *r, const char __user *buffer, size_t count)
p += bytes;
add_entropy_words(r, buf, (bytes + 3) / 4);
+ cond_resched();
}
return 0;