Skip to contentSkip to conversation

crypto mv_cesa : Invoke the user callback from a softirq context

PATCH In review Uri Simchoni 1 participant 1 message Apr 8, 2010 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH v2 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 +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();
 	}
 }