[Ocf-linux-users] patch for OCF
Brought to you by:
david-m
From: hwang7 <hua...@wi...> - 2013-04-23 08:29:48
|
Hi david When using cryptosoft of OCF to do the crypto and run test scripts which includes the following commands on SMP platform(we do the test on fsl_p4080 which is a SMP processor with 8 cores): $ openssl speed -evp des -engine cryptodev -elapsed -multi 10 $ openssl speed -evp des3 -engine cryptodev -elapsed -multi 10 $ openssl speed -evp aes128 -engine cryptodev -elapsed -multi 10 The system will give out call trace or hang. The root causes of this issue is: The swcr_sessions is not protected properly, and the three types of session operation "create session, use session, delete session" are also not protected properly. So: 1.add spin lock to protect swcr_sessions 2.add state/ref fields to session, use session state to prevent from deleting a session when it's in creating or using state, and use spin lock to protect the session state. -- Best Regards ======================== Wang Huanhuan Work phone: +86-10-8477-8568 |