Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=91f3f1e304f2e9ff2c8b9c76efd4fb8ff93110f7
Commit:     91f3f1e304f2e9ff2c8b9c76efd4fb8ff93110f7
Parent:     5ab24c79af5a05659f68eae3e5f232c9a15359d7
Author:     Matt Mackall <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 6 01:37:20 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Feb 6 10:41:06 2008 -0800

    drivers/char/random.c:write_pool() cond_resched() needed
    
    Reduce latency for large writes to /dev/[u]random
    
    Signed-off-by: Matt Mackall <[EMAIL PROTECTED]>
    Cc: Sami Farin <[EMAIL PROTECTED]>
    Cc: Theodore Ts'o <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/char/random.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index c511a83..f43c89f 100644
--- 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to