crypto: qat - fix invalid pf2vf_resp_wq logic
authorTadeusz Struk <tadeusz.struk@intel.com>
Mon, 25 Apr 2016 14:32:19 +0000 (07:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 01:35:09 +0000 (18:35 -0700)
commit2b30856211abd0a02bc2fc336a7c06ba279d107b
tree9df6b83f1da6a64af35e91459b80bfd716bcb81f
parentf1b9cba08781033c7641e54d1589b3d43d51d443
crypto: qat - fix invalid pf2vf_resp_wq logic

commit 9e209fcfb804da262e38e5cd2e680c47a41f0f95 upstream.

The pf2vf_resp_wq is a global so it has to be created at init
and destroyed at exit, instead of per device.

Tested-by: Suresh Marikkannu <sureshx.marikkannu@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/qat/qat_common/adf_common_drv.h
drivers/crypto/qat/qat_common/adf_ctl_drv.c
drivers/crypto/qat/qat_common/adf_sriov.c