commit | d6064165ba4449ea085a389724d728258a3180ec | [log] [tgz] |
---|---|---|
author | Tadeusz Struk <tadeusz.struk@intel.com> | Wed Apr 06 11:01:54 2016 -0700 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Apr 15 22:35:45 2016 +0800 |
tree | ae38a87001011166778e6c1fa6a437560bab8a4e | |
parent | 7587c407540006e4e8fd5ed33f66ffe6158e830a [diff] |
crypto: qat - adf_dev_stop should not be called in atomic context VFs call adf_dev_stop() from a PF to VF interrupt bottom half. This causes an oops "scheduling while atomic", because it tries to acquire a mutex to un-register crypto algorithms. This patch fixes the issue by calling adf_dev_stop() asynchronously. Changes in v2: - change kthread to a work queue. Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>