OSDN Git Service

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:11:35 +0000 (18:11 +0200)
commita85c525bbff4d7467d7f0ab6fed8e2f787b073d6
treefc9e0a1b2604ee4d32f316d869050dc229e174e5
parentb14031144e37fd5f53a6a4a1359d91b0210ca47f
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