From: Naveen Krishna Chatradhi Date: Thu, 8 May 2014 13:58:15 +0000 (+0800) Subject: crypto: s5p-sss - Look for the next request in the queue X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc5e3f1953b8bbfa6a7e8854d352c7da007ec6d9;p=pandora-kernel.git crypto: s5p-sss - Look for the next request in the queue Currently, the driver enqueues a request only if the busy bit is false. And every request initiates a dequeue. If 2 requests arrive simultaneously, only one of them will be dequeued. To avoid this senario, we will enqueue the next request irrespective of the system condition (that is what queue is here for). Also schedule at a tasklet immediatly after the current request is done. The tasklet will dequeue the next request in the queue, giving continuous loop. tasklet will exit if there are no requests in the queue. Signed-off-by: Naveen Krishna Chatradhi CC: David S. Miller CC: Acked-by: Vladimir Zapolskiy Signed-off-by: Herbert Xu --- Reading git-diff-tree failed