aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-03-21 12:25:47 +0100
committerPeter Zijlstra <[email protected]>2020-03-21 16:00:20 +0100
commitc1d51dd505577b189bf33867a9c20015ca7efb46 (patch)
tree0585f54e6948e240e10abfab649193aa8a9e972f /lib/mpi/mpi-mod.c
parentdeaa0a8a74d86573f190e21ae9a444ea5e3bceee (diff)
usb: gadget: Use completion interface instead of open coding it
ep_io() uses a completion on stack and open codes the waiting with: wait_event_interruptible (done.wait, done.done); and wait_event (done.wait, done.done); This waits in non-exclusive mode for complete(), but there is no reason to do so because the completion can only be waited for by the task itself and complete() wakes exactly one exlusive waiter. Replace the open coded implementation with the corresponding wait_for_completion*() functions. No functional change. Reported-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions