Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=189fe3174ce93f4c949325426c87c4d875a13424
Commit:     189fe3174ce93f4c949325426c87c4d875a13424
Parent:     7a74fc4925067c2102175baef73f9b07ab519b71
Author:     Rafael J. Wysocki <[EMAIL PROTECTED]>
AuthorDate: Thu May 31 18:10:22 2007 +1000
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Thu May 31 18:10:22 2007 +1000

    [CRYPTO] cryptd: Fix problem with cryptd and the freezer
    
    Make sure that cryptd is marked as nonfreezable and does not hold up the
    freezer.
    
    Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/cryptd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index 3ff4e1f..ac6dce2 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -298,7 +298,7 @@ static inline int cryptd_create_thread(struct cryptd_state 
*state,
        mutex_init(&state->mutex);
        crypto_init_queue(&state->queue, CRYPTD_MAX_QLEN);
 
-       state->task = kthread_create(fn, state, name);
+       state->task = kthread_run(fn, state, name);
        if (IS_ERR(state->task))
                return PTR_ERR(state->task);
 
@@ -316,6 +316,8 @@ static int cryptd_thread(void *data)
        struct cryptd_state *state = data;
        int stop;
 
+       current->flags |= PF_NOFREEZE;
+
        do {
                struct crypto_async_request *req, *backlog;
 
-
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