soc/fsl/qbman: fix issue in qman_delete_cgr_safe()
authorMadalin Bucur <madalin.bucur@nxp.com>
Wed, 14 Mar 2018 13:37:28 +0000 (08:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Mar 2018 16:10:42 +0000 (18:10 +0200)
commit29cd9c2d1f428c281962135ea046a9d7bda88d14
tree9e10ab2629a0437c2e8651b5caf62b3a5cb1d505
parent43d8f3c5d3ad77329545f5464c2b7e08074eea1a
soc/fsl/qbman: fix issue in qman_delete_cgr_safe()

[ Upstream commit 96f413f47677366e0ae03797409bfcc4151dbf9e ]

The wait_for_completion() call in qman_delete_cgr_safe()
was triggering a scheduling while atomic bug, replacing the
kthread with a smp_call_function_single() call to fix it.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/fsl/qbman/qman.c