cryptodev: Use wait_for_completion_timeout for async calls
authorDebarshi Dutta <ddutta@nvidia.com>
Tue, 3 Oct 2017 09:00:47 +0000 (14:00 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Mon, 13 Nov 2017 18:59:41 +0000 (10:59 -0800)
commit06a9a93995a7141b14394034301a8aadf717d956
tree3deb1c701d21d0746dc9c39ceac133aee98817a6
parent2e53543bc5e4b6d2f5921a59f7ca2b663f97983c
cryptodev: Use wait_for_completion_timeout for async calls

AES operations are asynchronous and when waiting for them
to complete, don't allow tasks to be interruptible.

Bug 200327042
Bug 200292436

Change-Id: I17305f601543d349e60cd986df3e949b7439e971
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1572379
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/misc/tegra-cryptodev.c