Skip to contentSkip to conversation

crypto mv_cesa : Invoke the user callback from a softirq context

PATCH Superseded Uri Simchoni 2 participants 2 messages Mar 16, 2010 – Mar 19, 2010 Crypto API

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 crypto mv_cesa : Invoke the user callback from a softirq context

Invoke the user callback from a softirq context

---

drivers/crypto/mv_cesa.c 2010-03-16 08:59:12.074583163 +0200 renamed from drivers/crypto/mv_cesa.c 2010-02-09 14:57:19.000000000 +0200 +2 -0
diff -upr linux-2.6.32.8_orig/drivers/crypto/mv_cesa.c linux-2.6.32.8_p1/drivers/crypto/mv_cesa.c
@@ -275,7 +275,9 @@ static void dequeue_complete_req(void)
         sg_miter_stop(&cpg->p.dst_sg_it);
         mv_crypto_algo_completion();
         cpg->eng_st = ENGINE_IDLE;
+        local_bh_disable();
         req->base.complete(&req->base, 0);
+        local_bh_enable();
     }
 }
 
maintainer
#1 lore raw
Quoted 11 lines · Uri Simchoni

Invoke the user callback from a softirq context

---
diff -upr linux-2.6.32.8_orig/drivers/crypto/mv_cesa.c linux-2.6.32.8_p1/drivers/crypto/mv_cesa.c
--- linux-2.6.32.8_orig/drivers/crypto/mv_cesa.c 2010-02-09
14:57:19.000000000 +0200
+++ linux-2.6.32.8_p1/drivers/crypto/mv_cesa.c 2010-03-16
08:59:12.074583163 +0200

drivers/crypto/mv_cesa.c 2010-03-16 08:59:12.074583163 +0200 static void dequeue_complete_req(void) · line 282

Quoted 8 lines
drivers/crypto/mv_cesa.c 2010-03-16 08:59:12.074583163 +0200 renamed from drivers/crypto/mv_cesa.c 2010-02-09 14:57:19.000000000 +0200 +2 -0
@@ -275,7 +275,9 @@ static void dequeue_complete_req(void)
         sg_miter_stop(&cpg->p.dst_sg_it);
         mv_crypto_algo_completion();
         cpg->eng_st = ENGINE_IDLE;
+        local_bh_disable();
         req->base.complete(&req->base, 0);
+        local_bh_enable();
     }
 }

Your patches are all space damaged and cannot be applied until that is fixed.

Please always check your patches by trying to apply the copy you receive via the list. If that doesn't work, then you need to figure out why.

Thanks,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt